/trunk/Examples/ocaml/argout_ref/Makefile

# · Makefile · 27 lines · 22 code · 5 blank · 0 comment · 0 complexity · 759169d5f5229bab986ae1d815cac978 MD5 · raw file

  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. static::
  11. $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
  12. TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' MLFILE='$(MLFILE)' \
  13. PROGFILE='$(PROGFILE)' OBJS='$(OBJS)' \
  14. ocaml_static_cpp
  15. dynamic::
  16. $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
  17. TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' MLFILE='$(MLFILE)' \
  18. PROGFILE='$(PROGFILE)' OBJS='$(OBJS)' \
  19. ocaml_dynamic_cpp
  20. clean::
  21. $(MAKE) -f $(TOP)/Makefile MLFILE='$(MLFILE)' ocaml_clean
  22. check: all