#							-*-makefile-gmake-*-
export OCAMLMAKEFILE = ../OCamlMakefile

export INCDIRS = ../src 
export LIBS =   magic

# "file" example 
define PROJ_file
  SOURCES = file.ml
  RESULT  = file
endef
export PROJ_file

# Use these, if the environment does not define subprojects to handle:
ifndef SUBPROJS
  export SUBPROJS = file
endif


.PHONY: all byte opt
all: byte opt
byte: byte-code
opt: native-code

export OCAMLC 	= /usr/local/bin/ocamlc.opt 
export OCAMLOPT = /usr/local/bin/ocamlopt.opt 

export TRASH += $(wildcard *~)

# Catch-all target will be applied to all subprojects automatically
%:
	@$(MAKE) -f $(OCAMLMAKEFILE) subprojs SUBTARGET=$@
