3 .PHONY: all clean dist mod opt
7 if $(equal $(shell uname), SunOS)
9 Mocamlcc (ml_apc, -Wall -Werror -g -I/usr/X11R6/include)
10 Mocamlc (apc, -warn-error A -g -thread -I +lablGL)
11 Mocamlopt (apc, -warn-error A -thread -I +lablGL)
14 libs = unix lablgl lablglut threads
18 libs = $(addsuffix .cma, $(libs))
19 flags = -thread -custom -I +lablGL
20 apc.byte: $(cmos) $(objs)
21 ocamlc.opt $(flags) -o $@ $(libs) $(caml-sort $(cmos)) $(objs) $(clibs)
25 libs = $(addsuffix .cmxa, $(libs))
26 flags = -thread -I +lablGL
27 apc.opt: $(cmxs) $(objs) apc.o
28 ocamlopt.opt $(flags) -o $@ $(libs) $(caml-sort $(cmxs)) $(objs) $(clibs)
31 add-project-directories ($(dirof OMakefile)/mod)
32 vmount (-l, $(dirof OMakefile)/mod, mod)
34 mod: itc-mod.c Makefile
40 apc-$(version).tgz: $(shell cat FILES)
42 mkdir -p apc-$(version)
43 tar -T $(file FILES) -chf - -C $(dirof FILES) | tar xf - -C apc-$(version)
44 tar cfz $@ apc-$(version)
46 dist: apc-$(version).tgz