PageRenderTime 37ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 0ms

/trunk/Examples/modula3/class/Makefile

#
Makefile | 25 lines | 19 code | 4 blank | 2 comment | 0 complexity | 71a45c99923e93f205c21ce7b5c36cc4 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. TOP = ../..
  2. SWIG = $(TOP)/../preinst-swig
  3. SRCS =
  4. TARGET = example
  5. PLATFORM = LINUXLIBC6
  6. INTERFACE = example.i
  7. SWIGOPT = -c++
  8. MODULA3SRCS = *.[im]3
  9. all:: modula3
  10. modula3::
  11. $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
  12. SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' modula3
  13. m3ppinplace $(MODULA3SRCS)
  14. # compilation of example_wrap.cxx is started by cm3
  15. # $(CXX) -c $(TARGET)_wrap.cxx
  16. mv example_wrap.cxx m3makefile $(MODULA3SRCS) src/
  17. ln -sf ../example.h src/example.h
  18. cm3
  19. clean::
  20. $(MAKE) -f $(TOP)/Makefile modula3_clean
  21. check: all