PageRenderTime 200ms CodeModel.GetById 42ms app.highlight 70ms RepoModel.GetById 73ms app.codeStats 0ms

/tags/rel-1-3-25/SWIG/Examples/chicken/egg/Makefile

#
Makefile | 39 lines | 25 code | 9 blank | 5 comment | 4 complexity | d16fc907b2bc7d67045d0441194ef141 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
 1SWIG = ../../../preinst-swig
 2
 3all: single multi
 4
 5# This creates an egg which contains only the single module.  Any additional implementation files
 6# that implement the interface being wrapped should also be added to this egg
 7single: single_wrap.cxx
 8	mkdir -p eggs
 9	tar czf eggs/single.egg single.setup single.scm single_wrap.cxx
10	rm -f single.scm single_wrap.cxx
11
12# complie the single module with -nounit
13single_wrap.cxx: single.i
14	$(SWIG) -chicken -c++ -proxy -nounit single.i
15
16# Now build both mod1 and mod2 into a single egg
17multi: mod1_wrap.cxx mod2_wrap.cxx
18	mkdir -p eggs
19	tar czf eggs/multi.egg multi.setup multi_init.scm mod1.scm mod1_wrap.cxx mod2.scm mod2_wrap.cxx
20	rm -f mod1.scm mod1_wrap.cxx mod2.scm mod2_wrap.cxx
21
22mod1_wrap.cxx: mod1.i
23	$(SWIG) -chicken -c++ -proxy mod1.i
24
25mod2_wrap.cxx: mod2.i
26	$(SWIG) -chicken -c++ -proxy mod2.i
27
28clean:
29	rm -rf eggs
30
31# this part is for testing...
32setup:
33	cd eggs && \
34	mkdir -p install && \
35	chicken-setup -repository `pwd`/install single.egg && \
36	chicken-setup -repository `pwd`/install multi.egg
37
38check:
39	cd eggs/install && csi ../../test.scm