📄 makefile
字号:
CC = gcc
OCAMLC=ocamlc
OCAMLOPT=ocamlopt
OCAMLDEP=ocamldep
INCLUDES= # all relevant -I options here
OCAMLFLAGS=-custom $(INCLUDES) # add other options for ocamlc here
OCAMLOPTFLAGS=$(INCLUDES) # add other options for ocamlopt here
CFLAGS = -I/db/ld3app/lib/ocaml \
-I/db/lead3_gsm_asp/WORKING_AREA/cfaverge/MISC_R2D/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.o freetype.cmo ptset.cmo coding.cmo lcd.cmo r2d_font.cmo processing.cmo main.cmo
r2d_font_tool: $(PROG1_OBJS)
$(OCAMLC) -o $@ $(OCAMLFLAGS) unix.cma $(PROG1_OBJS) ../freetype-2.0.4/objs/libfreetype.a
# 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.o freetype.cmx ptset.cmx coding.cmx lcd.cmx r2d_font.cmx processing.cmx main.cmx
opt_r2d_font_tool: $(PROG2_OBJS)
$(OCAMLOPT) -o $@ $(OCAMLFLAGS) unix.cmxa $(PROG2_OBJS) ../freetype-2.0.4/objs/libfreetype.a
check: check.c
gcc -o check check.c
# Common rules
.SUFFIXES: .ml .mli .cmo .cmi .cmx
.ml.cmo:
$(OCAMLC) $(OCAMLFLAGS) -c $<
.mli.cmi:
$(OCAMLC) $(OCAMLFLAGS) -c $<
.ml.cmx:
$(OCAMLOPT) $(OCAMLOPTFLAGS) -c $<
.c.o:
$(CC) $(CFLAGS) -c $<
# Clean up
clean:
rm -f r2d_font_tool opt_r2d_font_tool
rm -f *.cm[iox] *.o
# Dependencies
.depend:
$(OCAMLDEP) $(INCLUDES) *.mli *.ml > .depend
include .depend
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -