File: Makefile

package info (click to toggle)
camltemplate 1.0.2-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 944 kB
  • sloc: ml: 2,427; makefile: 296; sh: 51
file content (20 lines) | stat: -rw-r--r-- 563 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
TOP_DIR := ../..
-include $(TOP_DIR)/Makefile.rules
include ../examples.rules

INCDIRS := -I $(shell ocamlfind query str) -I $(CAMLTEMPLATE_DIR)
BYTE_LIBS := unix.cma str.cma threads.cma camltemplate.cma camlTemplate_mt.cmo
NATIVE_LIBS := unix.cmxa str.cmxa threads.cmxa camltemplate.cmxa camlTemplate_mt.cmx

SOURCES := thread_test.ml
RESULT := thread_test

.PHONY: all opt clean
all: 
	ocamlc -thread $(INCDIRS) -o $(RESULT) $(BYTE_LIBS) $(SOURCES)

opt:
	ocamlopt -thread $(INCDIRS) -o $(RESULT) $(NATIVE_LIBS) $(SOURCES)

clean:
	rm -f $(RESULT) *.cm? *.o *~