53 lines
1.4 KiB
Makefile
53 lines
1.4 KiB
Makefile
include ../support/Makefile.common
|
|
|
|
# We are using the non-installed library !
|
|
COMPFLAGS=-I ../lib -I ../camltk -I ../support -I $(OTHERS)/unix -w s -dllpath ../support
|
|
|
|
|
|
all: addition$(EXE) helloworld$(EXE) winskel$(EXE) fileinput$(EXE) \
|
|
eyes$(EXE) tetris$(EXE) mytext$(EXE) fileopen$(EXE)
|
|
|
|
addition$(EXE): addition.cmo
|
|
$(CAMLC) $(COMPFLAGS) -o $@ $(LIBNAME).cma addition.cmo
|
|
|
|
helloworld$(EXE): helloworld.cmo
|
|
$(CAMLC) $(COMPFLAGS) -o $@ $(LIBNAME).cma helloworld.cmo
|
|
|
|
winskel$(EXE): winskel.cmo
|
|
$(CAMLC) $(COMPFLAGS) -o $@ $(LIBNAME).cma winskel.cmo
|
|
|
|
fileinput$(EXE): fileinput.cmo
|
|
$(CAMLC) $(COMPFLAGS) -o $@ unix.cma $(LIBNAME).cma fileinput.cmo
|
|
|
|
socketinput$(EXE): socketinput.cmo
|
|
$(CAMLC) $(COMPFLAGS) -o $@ unix.cma $(LIBNAME).cma socketinput.cmo
|
|
|
|
eyes$(EXE): eyes.cmo
|
|
$(CAMLC) $(COMPFLAGS) -o $@ unix.cma $(LIBNAME).cma eyes.cmo
|
|
|
|
tetris$(EXE): tetris.cmo
|
|
$(CAMLC) $(COMPFLAGS) -o $@ unix.cma $(LIBNAME).cma tetris.cmo
|
|
|
|
mytext$(EXE): mytext.cmo
|
|
$(CAMLC) $(COMPFLAGS) -o $@ unix.cma $(LIBNAME).cma mytext.cmo
|
|
|
|
# graph$(EXE): graphics.cmo graphics_test.cmo
|
|
# $(CAMLC) -o $@ graphics.cmo graphics_test.cmo
|
|
#
|
|
# graphics_test.cmo: graphics.cmo
|
|
|
|
fileopen$(EXE): fileopen.cmo
|
|
$(CAMLC) $(COMPFLAGS) -o $@ $(LIBNAME).cma fileopen.cmo
|
|
|
|
clean :
|
|
rm -f *.cm? $(EXECS) addition eyes fileinput fileopen helloworld jptest mytext tetris winskel
|
|
|
|
.SUFFIXES :
|
|
.SUFFIXES : .mli .ml .cmi .cmo
|
|
|
|
.mli.cmi:
|
|
$(CAMLCOMP) $(COMPFLAGS) $<
|
|
|
|
.ml.cmo:
|
|
$(CAMLCOMP) $(COMPFLAGS) $<
|