Commits

arkdro committed e8ef236

correct profile target

  • Participants
  • Parent commits 64dc516

Comments (0)

Files changed (1)

File ocaml/Makefile

+BLD = ocamlbuild -classic-display
 PROG = odec_port
 PROG_BYTE = $(PROG).byte
 PROG_NATIVE = $(PROG).native
 CFLAGS = $(patsubst %, -cflag %, $(CFLAGS_PURE))
 LFLAGS_PURE = -g
 LFLAGS = $(patsubst %, -cflag %, $(LFLAGS_PURE))
+PROF_FLAGS = -classic-display -tag profile
 
 all:
-	ocamlbuild $(LFLAGS) $(CFLAGS) $(SRC) $(LIBS) -pp "camlp4o Camlp4MacroParser.cmo $(DEFS)" $(PROG_DEST)
+	$(BLD) $(LFLAGS) $(CFLAGS) $(SRC) $(LIBS) -pp "camlp4o Camlp4MacroParser.cmo $(DEFS)" $(PROG_DEST)
 #	ocamlbuild -lflag -g -cflag -g -cflag -annot -I src -I e -lib nums -lib unix -lib bigarray -pp "camlp4o Camlp4MacroParser.cmo -D EPT_DUMP_DEBUG -D EPT_XY_DEBUG -D EPT_LAB_DEBUG -D EPT_TRACE_DEBUG" $(PROG_BYTE)
 
 prof:
 	# for profiling:
-	ocamlbuild -lflag -p -cflag -p -I e -lib nums -lib unix -lib bigarray -pp "camlp4o Camlp4MacroParser.cmo -D EPT_DUMP_DEBUG -D EPT_XY_DEBUG -D EPT_LAB_DEBUG -D EPT_TRACE_DEBUG" src/$(PROG_NATIVE)
+	$(BLD) $(PROF_FLAGS) $(LFLAGS) $(CFLAGS) $(SRC) $(LIBS) -pp "camlp4o Camlp4MacroParser.cmo $(DEFS)" $(PROG_DEST)
 
 clean:
 	rm -rf _build $(PROG_BYTE) $(PROG_NATIVE) $(PROG)