#
# Sukyoung Ryu
#
# Copyright(c) 2000-2004 KAIST/SNU Research On Program Analysis System
# (National Creative Research Initiative Center 1998-2003)
# http://ropas.snu.ac.kr/n
#
# All rights reserved. This file is distributed under the terms of
# an Open Source License.
#
ROOT=../..
include $(ROOT)/config/Makefile
NCAMLC=$(ROOT)/boot/ncamlrun $(ROOT)/nmlc -I $(ROOT)/boot
NCAMLO=$(ROOT)/boot/ncamlrun $(ROOT)/nmlo -I $(ROOT)/stdlib
COMPFLAGS=-nontyping $(INCLUDES)
DEPFLAGS=$(INCLUDES)
INCLUDES=-I $(ROOT)/otherlibs/unix -I $(ROOT)/utils -I $(ROOT)/parser -I $(ROOT)/ocaml/parsing
OBJ=$(ROOT)/utils/config.cmo $(ROOT)/utils/clflags.cmo \
$(ROOT)/utils/misc.cmo $(ROOT)/utils/warnings.cmo \
$(ROOT)/parser/linenum.cmo $(ROOT)/parser/location.cmo \
$(ROOT)/ocaml/parsing/longident.cmo \
$(ROOT)/ocaml/parsing/lexer.cmo $(ROOT)/ocaml/parsing/syntaxerr.cmo \
$(ROOT)/ocaml/parsing/parser.cmo $(ROOT)/ocaml/parsing/parse.cmo \
$(ROOT)/parser/nlexer.cmo $(ROOT)/parser/nsyntaxerr.cmo \
$(ROOT)/parser/nparser.cmo $(ROOT)/parser/postparse.cmo \
$(ROOT)/parser/nparse.cmo \
utils.cmo ncamldep.cmo nmakegen.cmo
all: nmakegen
nmakegen: $(OBJ)
$(NCAMLC) -custom unix.cma $(INCLUDES) -o nmakegen $(OBJ)
opt: $(OBJ:.cmo=.cmx)
$(NCAMLO) unix.cmxa $(INCLUDES) -o nmakegen $(OBJ:.cmo=.cmx)
.SUFFIXES:
.SUFFIXES: .ml .mli .n .cmo .cmi .cmx
.ml.cmo:
$(NCAMLC) $(COMPFLAGS) -c $<
.ml.cmx:
$(NCAMLO) $(COMPFLAGS) -c $<
.mli.cmi:
$(NCAMLC) $(COMPFLAGS) -c $<
.n.cmo:
$(NCAMLC) $(COMPFLAGS) -c $<
.n.cmx:
$(NCAMLO) $(COMPFLAGS) -c $<
clean::
rm -f *.cm[iox] *.[so] nmakegen
install:
cp nmakegen $(BINDIR)/nmakegen
syntax highlighted by Code2HTML, v. 0.9.1