PageRenderTime 23ms CodeModel.GetById 17ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 1ms

/trunk/Examples/chicken/class/Makefile

#
Makefile | 38 lines | 28 code | 6 blank | 4 comment | 0 complexity | e799db211f9348de1ffd5bb2a68a041c MD5 | raw file
 1TOP         = ../..
 2SWIG        = $(TOP)/../preinst-swig
 3INTERFACE   = example.i
 4SRCS        = 
 5CXXSRCS     = example.cxx
 6TARGET      = class
 7INCLUDE     =
 8SWIGOPT     =
 9CFLAGS      = 
10VARIANT     =
11
12# uncomment the following lines to build a static exe (only pick one of the CHICKEN_MAIN lines)
13#CHICKEN_MAIN = test-lowlevel-class.scm
14#CHICKEN_MAIN = test-tinyclos-class.scm
15#VARIANT      = _static
16
17all:: $(TARGET) $(TARGET)_proxy
18
19$(TARGET): $(INTERFACE) $(SRCS)
20	$(MAKE) -f $(TOP)/Makefile \
21		SRCS='$(SRCS)' CXXSRCS='$(CXXSRCS)' CHICKEN_MAIN='$(CHICKEN_MAIN)' \
22		INCLUDE='$(INCLUDE)' SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' \
23		SWIG='$(SWIG)' INTERFACE='$(INTERFACE)' CHICKENOPTS='$(CHICKENOPTS)' chicken$(VARIANT)_cpp
24
25$(TARGET)_proxy: $(INTERFACE) $(SRCS)
26	$(MAKE) -f $(TOP)/Makefile \
27		SRCS='$(SRCS)' CXXSRCS='$(CXXSRCS)' CHICKEN_MAIN='$(CHICKEN_MAIN)' \
28		INCLUDE='$(INCLUDE)' SWIGOPT='$(SWIGOPT) -proxy' TARGET='$(TARGET)_proxy' \
29		SWIG='$(SWIG)' INTERFACE='$(INTERFACE)' CHICKENOPTS='$(CHICKENOPTS)' chicken$(VARIANT)_cpp
30
31clean::
32	$(MAKE) -f $(TOP)/Makefile chicken_clean
33	rm -f example.scm
34	rm -f $(TARGET)
35
36check::
37	env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH csi test-lowlevel-class.scm
38	env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH csi test-tinyclos-class.scm