(file) Return to GNUmakefile CVS log (file) (dir) Up to [OMI] / omi / unittest / genoptions

File: [OMI] / omi / unittest / genoptions / Attic / GNUmakefile (download)
Revision: 1.1.1.1 (vendor branch), Wed May 30 21:47:39 2012 UTC (12 years, 1 month ago) by mike
Branch: TOG
CVS Tags: OMI_1_0_2_Branch, OMI_1_0_2, OMI_1_0_1_PRE, OMI_1_0_1, OMI_1_0_0
Changes since 1.1: +0 -0 lines
Initial Import

TOP=../..
include $(TOP)/config.mak

##==============================================================================
##
## all:
##
##==============================================================================

all: test_description test_ignore_all test_boolean
	echo "ok"



##==============================================================================
##
## generate:
##
##==============================================================================

OMIGEN=$(BINDIR)/omigen
CLASSES = Test
OPTS = schema.mof $(CLASSES)

test_description:
	$(OMIGEN) -D $(OPTS) 
	$(MAKE) build
	./main description

test_ignore_all:
	$(OMIGEN) -Q $(OPTS) 
	$(MAKE) build
	./main ignore_all

test_boolean:
	$(OMIGEN) -B $(OPTS) 
	$(MAKE) build
	./main boolean

##==============================================================================
##
## build:
##
##==============================================================================

export LD_LIBRARY_PATH=.
FLAGS = -Wall -O2 -fvisibility=hidden  -DMI_CHAR_TYPE=1 -fPIC
INCLUDES = -I$(TOP)/common -I$(TOP)/common/posix 
SOURCES = $(wildcard *.c)
OBJECTS=$(SOURCES:.c=.o)

build:
	gcc $(FLAGS) $(INCLUDES) -c $(SOURCES)
	gcc -shared -o libgenall.so $(OBJECTS)
	g++ $(FLAGS) $(INCLUDES) -o main -Wall main.cpp -L. -lgenall
	


##==============================================================================
##
## clean:
##
##==============================================================================

clean:
	rm -f *.c *.h 
	rm -f *.o *.so main *Class.cpp module.cpp stubs.cpp

ViewCVS 0.9.2