Wrote a unit test to make sure xplc_ptr is working. It failed. Sigh.
[wvapps.git] / xplcidl / Makefile
blobdf92e8d8e046fe1d11c34dfa15b65448be685b18
1 WVSTREAMS=$(PWD)/../niti/src/wvstreams
2 include wvrules.mk
5 CFLAGS+=$(shell pkg-config --cflags libIDL) -I/usr/include/libIDL-2.0
6 xplcidl-LIBS+=-lIDL-2 $(LIBUNICONF)
8 default: cpptest ctest scriptest
10 all: xplcidl
12 test: cpptest ctest ctest_tcl.so scriptest
13 ./cpptest
14 ./ctest
15 ./test.tcl
16 ./scriptest
18 ctest_tcl.so: ctest_tcl.o cppimpl.o expected.o
20 ctest_tcl.c: ctest.h test.h
21 rm -f $@ $@.new
22 swig -tcl -module ctest_tcl -Wall -includeall -o $@.new $<
23 mv $@.new $@
25 ctest_tcl.o: ctest_tcl.c ctest.h test.h
26 $(CC) $(CFLAGS) -include ctest.h -c $< -o $@
28 %.hpp: %.idl xplcidl
29 rm -f $@
30 ./xplcidl c++ $< >$@.new
31 mv $@.new $@
33 %.h: %.idl xplcidl
34 rm -f $@
35 ./xplcidl c $^ >$@.new
36 mv $@.new $@
38 cppimpl.o cpptest.o: test.hpp IObject.hpp
40 cimpl.o ctest.o: test.h
42 cpptest: cpptest.o cppimpl.o expected.o
44 ctest: ctest.o cppimpl.o expected.o
46 scriptest-LIBS=$(LIBUNICONF)
47 scriptest: scriptest.o
49 ptrtest-LIBS=$(LIBWVBASE)
51 scriptest.o: IMulti.hpp
53 clean:
54 rm -f xplcidl *test test.hpp test.h *.new *_tcl.c \
55 IObject.hpp