PageRenderTime 36ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 0ms

/trunk/Examples/ocaml/simple/Makefile

#
Makefile | 33 lines | 27 code | 6 blank | 0 comment | 0 complexity | 1b321cbf39a70bc8140e62a3207d50f9 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 = example.c
  4. TARGET = example
  5. INTERFACE = example.i
  6. MLFILE = example.ml
  7. PROGFILE = example_prog.ml
  8. OBJS = example.o
  9. all:: static
  10. dynamic::
  11. $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
  12. TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' MLFILE='$(MLFILE)' \
  13. PROGFILE='$(PROGFILE)' OBJS='$(OBJS)' \
  14. ocaml_dynamic
  15. static::
  16. $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
  17. TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' MLFILE='$(MLFILE)' \
  18. PROGFILE='$(PROGFILE)' OBJS='$(OBJS)' \
  19. ocaml_static
  20. toplevel::
  21. $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
  22. TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' MLFILE='$(MLFILE)' \
  23. PROGFILE='$(PROGFILE)' OBJS='$(OBJS)' \
  24. ocaml_static_toplevel
  25. clean::
  26. $(MAKE) -f $(TOP)/Makefile MLFILE='$(MLFILE)' ocaml_clean
  27. check: all