Link with newer libidl, which can report cpp errors. This turns out to be
[wvapps.git] / xplcidl / Makefile
blob5e1b2f78b3a81d1d141de62a877f1c5d7eec39e5
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
13 ./cpptest
14 ./ctest
15 ./test.tcl
17 ctest_tcl.so: ctest_tcl.o cppimpl.o expected.o
19 ctest_tcl.c: ctest.h test.h
20 rm -f $@ $@.new
21 swig -tcl -module ctest_tcl -Wall -includeall -o $@.new $<
22 mv $@.new $@
24 ctest_tcl.o: ctest_tcl.c ctest.h test.h
25 $(CC) $(CFLAGS) -include ctest.h -c $< -o $@
27 %.hpp: %.idl xplcidl
28 rm -f $@
29 ./xplcidl c++ $< >$@.new
30 mv $@.new $@
32 %.h: %.idl xplcidl
33 rm -f $@
34 ./xplcidl c $^ >$@.new
35 mv $@.new $@
37 cppimpl.o cpptest.o: test.hpp IObject.hpp
39 cimpl.o ctest.o: test.h
41 cpptest: cpptest.o cppimpl.o expected.o
43 ctest: ctest.o cppimpl.o expected.o
45 scriptest-LIBS=$(LIBUNICONF)
46 scriptest: scriptest.o
48 scriptest.o: IMulti.hpp
50 clean:
51 rm -f xplcidl *test test.hpp test.h *.new *_tcl.c \
52 IObject.hpp