PageRenderTime 12ms CodeModel.GetById 1ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/d/variables/Makefile

#
Makefile | 30 lines | 24 code | 6 blank | 0 comment | 0 complexity | 698e090a103da243813666de798bc57c MD5 | raw file
 1ifeq (2,$(D_VERSION))
 2  WORKING_DIR = d2/
 3else
 4  WORKING_DIR = d1/
 5endif
 6
 7TOP           = ../../..
 8SWIG          = $(TOP)/../preinst-swig
 9EXTRA_CFLAGS  = -I../ ../example.c example_wrap.c
10EXTRA_LDFLAGS = example.o example_wrap.o
11TARGET        = example_wrap
12SWIGOPT       =
13DSRCS         = *.d
14DFLAGS        = -ofrunme
15
16
17all::	d
18
19d::
20	cd $(WORKING_DIR); \
21	$(MAKE) -f $(TOP)/Makefile EXTRA_CFLAGS='$(EXTRA_CFLAGS)' EXTRA_LDFLAGS='$(EXTRA_LDFLAGS)' SWIG='$(SWIG)' SWIGOPT='$(SWIGOPT) -outcurrentdir ../example.i' TARGET='$(TARGET)' d; \
22	$(MAKE) -f $(TOP)/Makefile DSRCS='$(DSRCS)' DFLAGS='$(DFLAGS)' d_compile
23
24clean::
25	cd $(WORKING_DIR); \
26	$(MAKE) -f $(TOP)/Makefile d_clean
27
28check: all
29	cd $(WORKING_DIR); \
30	$(MAKE) -f $(TOP)/Makefile d_run