PageRenderTime 24ms CodeModel.GetById 17ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 1ms

/trunk/Examples/d/class/Makefile

#
Makefile | 30 lines | 24 code | 6 blank | 0 comment | 0 complexity | 215a97344c5670ec4199fa798e7c1e23 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.cxx example_wrap.cxx
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_cpp; \
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