diff options
Diffstat (limited to 'otherlibs/labltk/jpf/Makefile')
| -rw-r--r-- | otherlibs/labltk/jpf/Makefile | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/otherlibs/labltk/jpf/Makefile b/otherlibs/labltk/jpf/Makefile new file mode 100644 index 0000000000..0e31823054 --- /dev/null +++ b/otherlibs/labltk/jpf/Makefile @@ -0,0 +1,75 @@ +include ../Makefile.config + +COMPFLAGS=-I ../lib -I ../support + +OBJS= fileselect.cmo balloon.cmo + +OBJSX = $(OBJS:.cmo=.cmx) + +TKLINKOPT=$(STATIC) \ + -ccopt -L../support -cclib -llabltk41 \ + $(TKLIBS) $(X11_LIBS) + +all: libjpf.cma + +opt: libjpf.cmxa + +test: balloontest + +testopt: balloontest.opt + +libjpf.cma: $(OBJS) + $(LABLLIBR) -o libjpf.cma $(OBJS) + +libjpf.cmxa: $(OBJSX) + $(CAMLOPTLIBR) -o libjpf.cmxa $(OBJSX) + +install: libjpf.cma + cp *.cmi *.mli libjpf.cma $(INSTALLDIR) + +installopt: libjpf.cmxa + cp libjpf.cmxa libjpf.a $(INSTALLDIR) + +clean: + rm -f *.cm* *.o *.a *~ *test + +### Tests + +balloontest: balloontest.cmo + $(LABLC) -o balloontest -I ../support -I ../lib \ + -custom tk41.cma libjpf.cma balloontest.cmo $(TKLINKOPT) + +balloontest.opt: balloontest.cmx + $(CAMLOPT) -o balloontest.opt -I ../support -I ../lib \ + tk41.cmxa libjpf.cmxa balloontest.cmx $(TKLINKOPT) + +balloontest.cmo : balloon.cmo libjpf.cma + +balloontest.cmx : balloon.cmx libjpf.cmxa + +.SUFFIXES : +.SUFFIXES : .mli .ml .cmi .cmx .cmo + +.mli.cmi: + $(LABLCOMP) $(COMPFLAGS) $< + +.ml.cmo: + $(LABLCOMP) $(COMPFLAGS) $< + +.ml.cmx: + $(CAMLOPT) -c $(COMPFLAGS) $< + +depend: + mv Makefile Makefile.bak + (sed -n -e '1,/^### DO NOT DELETE THIS LINE/p' Makefile.bak; \ + $(LABLDEP) *.mli *.ml) > Makefile + + +### EVERYTHING THAT GOES BEYOND THIS COMMENT IS GENERATED +### DO NOT DELETE THIS LINE +balloon.cmo: balloon.cmi +balloon.cmx: balloon.cmi +balloontest.cmo: balloon.cmi +balloontest.cmx: balloon.cmx +fileselect.cmo: fileselect.cmi +fileselect.cmx: fileselect.cmi |
