PageRenderTime 53ms CodeModel.GetById 26ms RepoModel.GetById 0ms app.codeStats 0ms

/trunk/Examples/d/enum/Makefile

#
Makefile | 30 lines | 24 code | 6 blank | 0 comment | 0 complexity | 215a97344c5670ec4199fa798e7c1e23 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. ifeq (2,$(D_VERSION))
  2. WORKING_DIR = d2/
  3. else
  4. WORKING_DIR = d1/
  5. endif
  6. TOP = ../../..
  7. SWIG = $(TOP)/../preinst-swig
  8. EXTRA_CFLAGS = -I../ ../example.cxx example_wrap.cxx
  9. EXTRA_LDFLAGS = example.o example_wrap.o
  10. TARGET = example_wrap
  11. SWIGOPT =
  12. DSRCS = *.d
  13. DFLAGS = -ofrunme
  14. all:: d
  15. d::
  16. cd $(WORKING_DIR); \
  17. $(MAKE) -f $(TOP)/Makefile EXTRA_CFLAGS='$(EXTRA_CFLAGS)' EXTRA_LDFLAGS='$(EXTRA_LDFLAGS)' SWIG='$(SWIG)' SWIGOPT='$(SWIGOPT) -outcurrentdir ../example.i' TARGET='$(TARGET)' d_cpp; \
  18. $(MAKE) -f $(TOP)/Makefile DSRCS='$(DSRCS)' DFLAGS='$(DFLAGS)' d_compile
  19. clean::
  20. cd $(WORKING_DIR); \
  21. $(MAKE) -f $(TOP)/Makefile d_clean
  22. check: all
  23. cd $(WORKING_DIR); \
  24. $(MAKE) -f $(TOP)/Makefile d_run