- 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
29 lines
819 B
Makefile
29 lines
819 B
Makefile
TOP = ../..
|
|
SWIG = $(TOP)/../preinst-swig
|
|
INTERFACE = example.i
|
|
SRCS =
|
|
CXXSRCS = example.cxx
|
|
TARGET = overload
|
|
INCLUDE =
|
|
SWIGOPT = -proxy -unhideprimitive
|
|
VARIANT =
|
|
|
|
# uncomment the following 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)_cpp
|
|
|
|
clean:
|
|
$(MAKE) -f $(TOP)/Makefile SRCDIR='$(SRCDIR)' chicken_clean
|
|
rm -f example.scm
|
|
rm -f $(TARGET)
|