swig/Examples/chicken/simple/Makefile
William S Fulton 18d72f4562 Add in CPPFLAGS and LDFLAGS to examples/test-suite
- Split current usage of CXXFLAGS into the conventional CPPFLAGS CXXFLAGS and LDFLAGS
- Split current usage of CFLAGS into the conventional CPPFLAGS CFLAGS and LDFLAGS
- This restores 'make whatever CXXFLAGS=-g' which stopped working during
  the recently added suppport for out of source builds.
- LDFLAGS is currently empty, but is there for future use
2014-05-15 23:11:08 +01:00

29 lines
828 B
Makefile

TOP = ../..
SWIG = $(TOP)/../preinst-swig
INTERFACE = example.i
SRCS = example.c
CXXSRCS =
TARGET = simple
INCLUDE =
SWIGOPT =
VARIANT =
# uncomment the following two lines to build a static exe
#CHICKEN_MAIN = runme.scm
#VARIANT = _static
check: build
$(MAKE) -f $(TOP)/Makefile SRCDIR='$(SRCDIR)' chicken_run
build: $(TARGET)
$(TARGET): $(INTERFACE) $(SRCS)
$(MAKE) -f $(TOP)/Makefile SRCDIR='$(SRCDIR)' \
SRCS='$(SRCS)' CXXSRCS='$(CXXSRCS)' CHICKEN_MAIN='$(CHICKEN_MAIN)' \
INCLUDE='$(INCLUDE)' SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' \
SWIG='$(SWIG)' INTERFACE='$(INTERFACE)' CHICKENOPTS='$(CHICKENOPTS)' chicken$(VARIANT)
clean:
$(MAKE) -f $(TOP)/Makefile SRCDIR='$(SRCDIR)' chicken_clean
rm -f example.scm example-generic.scm example-clos.scm
rm -f $(TARGET)