1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
|
CAMLC = ocamlc
CAMLO = ocamlopt
CDEBUGFLAGS =
ZFLAGS = -g
ZFLAGSOPT =
OCAMLDIR = c:\ocaml\lib
# path for Ocaml C header files
OC_CFLAGS = -I $(OCAMLDIR)
##############################################################
### You should not need to customize anything below this ###
##############################################################
include no_detect_1_2.nt
CFLAGS = -I c:\msdev\include $(CDEBUGFLAGS) $(OC_CFLAGS) $(GLIB_CFLAGS) \
-I d:\gtk\src\gtk-plus $(GTKDEFINES)
CMOFILES = glib.cmo gdk.cmo gtk.cmo gtkObj.cmo gtkEasy.cmo
CMXFILES = glib.cmx gdk.cmx gtk.cmx gtkObj.cmx gtkEasy.cmx
OFILES = mlgdk_stub.obj mlglib_stub.obj mlgtk_stub.obj
all: print_message libs examples
all_opt: libs_opt examples_opt
#libs_opt: gtk.cmxa libmlgtk.a
libs: mlgtk.lib gtk.cma
examples:
@echo exam
make -C examples all
examples_opt:
make -C examples all_opt
print_message:
@echo $(OK)
gtk.cma: $(CMOFILES)
$(CAMLC) -a -o $@ $(CMOFILES)
gtk.cmxa: $(CMXFILES)
$(CAMLO) -a -o $@ $(CMXFILES)
mlgtk.lib: $(OFILES)
lib /out:$@ $(OFILES)
clean:
del *.cm*
del *.o
del *.a
distclean:
-rm -f .depend *.cm* *.o *.a
make -C examples distclean
depend:
ocamldep *.ml* >.depend
.depend:
ocamldep *.ml* >.depend
.ml.cmo:
$(CAMLC) $(ZFLAGS) -c $<
.ml.cmx:
$(CAMLO) $(ZFLAGSOPT) -c $<
.mli.cmi:
$(CAMLC) $(ZFLAGS) -c $<
.c.o:
$(CC) $(CFLAGS) -c $<
.SUFFIXES: .ml .cmo .cmx .mli .cmi
include .depend
|