?? winmakefile
字號:
OCAMLC=d:/ocaml-3.0/bin/ocamlc.exe
OCAMLOPT=d:/ocaml-3.0/bin/ocamlopt.exe
OCAMLDEP=d:/ocaml-3.0/bin/ocamldep.exe
INCLUDES= # all relevant -I options here
OCAMLFLAGS=-verbose -custom $(INCLUDES) # add other options for ocamlc here
OCAMLOPTFLAGS= -verbose $(INCLUDES) # add other options for ocamlopt here
CFLAGS = -Id:/ocaml-3.0/lib -Id:/freetype-2.0.4/include
# prog1 should be compiled to bytecode, and is composed of three
# units: mod1, mod2 and mod3.
# The list of object files for prog1
PROG1_OBJS= freetypeintf.obj freetype.cmo ptset.cmo coding.cmo lcd.cmo r2d_font.cmo processing.cmo main.cmo
slow_r2d_font_tool: $(PROG1_OBJS)
$(OCAMLC) -o $@ -verbose -custom unix.cma $(PROG1_OBJS) d:/freetype-2.0.4/objs/freetype.lib -cclib /nodefaultlib
# prog2 should be compiled to native-code, and is composed of two
# units: mod4 and mod5.
# The list of object files for prog2
PROG2_OBJS=freetypeintf.obj freetype.cmx ptset.cmx coding.cmx lcd.cmx r2d_font.cmx processing.cmx main.cmx
r2d_font_tool: $(PROG2_OBJS)
$(OCAMLOPT) -o $@ $(OCAMLOPTFLAGS) unix.cmxa $(PROG2_OBJS) d:/freetype-2.0.4/objs/freetype.lib -cclib -lunix \
-cclib /link -cclib /nodefaultlib:LIBCMT
# Common rules
.SUFFIXES: .ml .mli .cmo .cmi .cmx .c .obj
.ml.cmo:
$(OCAMLC) $(OCAMLFLAGS) -c $<
.mli.cmi:
$(OCAMLC) $(OCAMLFLAGS) -c $<
.ml.cmx:
$(OCAMLOPT) $(OCAMLOPTFLAGS) -c $<
.c.obj:
cl /D "MSDOS" /D "WIN32" $(CFLAGS) /c /Fo$@ $<
# Clean up
clean:
-rm r2d_font_tool opt_r2d_font_tool
-rm *.cmi *.cmo *.cmx *.obj
-rm depend
# Dependencies
depend:
$(OCAMLDEP) $(INCLUDES) *.mli *.ml > depend
include depend
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -