PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/chicken/simple/Makefile

#
Makefile | 30 lines | 22 code | 5 blank | 3 comment | 0 complexity | b73c047982b8a090957ef88eec954442 MD5 | raw file
 1TOP         = ../..
 2SWIG        = $(TOP)/../preinst-swig
 3INTERFACE   = example.i
 4SRCS        = example.c
 5CXXSRCS     = 
 6TARGET      = simple
 7INCLUDE     =
 8SWIGOPT     = 
 9CFLAGS      = 
10VARIANT     = 
11
12# uncomment the following two lines to build a static exe
13#CHICKEN_MAIN = test-simple.scm
14#VARIANT      = _static
15
16all:: $(TARGET)
17
18$(TARGET): $(INTERFACE) $(SRCS)
19	$(MAKE) -f $(TOP)/Makefile \
20		SRCS='$(SRCS)' CXXSRCS='$(CXXSRCS)' CHICKEN_MAIN='$(CHICKEN_MAIN)' \
21		INCLUDE='$(INCLUDE)' SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' \
22		SWIG='$(SWIG)' INTERFACE='$(INTERFACE)' CHICKENOPTS='$(CHICKENOPTS)' chicken$(VARIANT)
23
24clean::
25	$(MAKE) -f $(TOP)/Makefile chicken_clean
26	rm -f example.scm example-generic.scm example-clos.scm
27	rm -f $(TARGET)
28
29check::
30	env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH csi test-simple.scm