1 WVSTREAMS
=$(PWD
)/..
/niti
/src
/wvstreams
6 CFLAGS
+=$(shell pkg-config
--cflags libIDL
) -I
/usr
/include/libIDL-2.0
7 xplcidl-LIBS
+=-lIDL-2
$(LIBUNICONF
)
9 default
: cpptest ctest multitest scriptest
11 all: xplcidl stuff.a auto
/dispatch_IMulti.o
13 stuff.a
: mymulti.o cppimpl.o expected.o masterdispatch.o uniscript.o
15 test: cpptest ctest ctest_tcl.so multitest scriptest uniscript_tcl.so
23 ctest_tcl.so
: auto
/ctest_tcl.o stuff.a
28 uniscript_tcl.so
: auto
/uniscript_tcl.o mymulti.o auto
/dispatch_IMulti.o \
31 auto
/ctest_tcl.c
: ctest.h auto
/test.h
35 swig
-tcl
-module
$*_tcl
-Wall
-includeall
-Iauto
-o
$@.new
$<
38 auto
/ctest_tcl.o
: auto
/ctest_tcl.c ctest.h auto
/test.h
39 $(CC
) $(CFLAGS
) -include ctest.h
-c
$< -o
$@
41 auto
/dispatch_
%.
cc: %.idl xplcidl
43 .
/xplcidl dispatch
$< >$@.new
46 auto
/%.hpp
: %.idl xplcidl
48 .
/xplcidl c
++ $< >$@.new
51 auto
/%.h
: %.idl xplcidl
53 .
/xplcidl c
$^
>$@.new
56 cppimpl.o cpptest.o
: auto
/test.hpp auto
/IObject.hpp
58 cimpl.o ctest.o
: auto
/test.h
60 cpptest
: cpptest.o stuff.a
62 ctest
: ctest.o stuff.a
64 multitest-LIBS
=$(LIBUNICONF
)
65 ptrtest-LIBS
=$(LIBWVBASE
)
66 scriptest-LIBS
=$(LIBUNICONF
)
68 scriptest multitest
: stuff.a
70 # scriptest: intwrap.o
71 scriptest
: auto
/dispatch_IMulti.o mymulti.o
74 mymulti.o
: auto
/IMulti.hpp
77 rm -f xplcidl
*test *.new auto
/.
*.d \
78 $(shell find auto
-type f
-name
'*' -maxdepth
1)