#
# 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 ..\..\config\Makefile.nt
NCAMLC=..\..\boot\ncamlrun ..\..\nmlc -nontyping -I ..\..\boot -I ..\..\otherlibs\win32unix
NCAMLO=..\..\boot\ncamlrun ..\..\nmlo -nontyping -I ..\..\stdlib -I ..\..\otherlibs\win32unix
COMPFLAGS=$(INCLUDES)
DEPFLAGS=$(INCLUDES)
INCLUDES=-I ../../utils -I ../../parser -I ../../ocaml/parsing
OBJ=../../utils/config.cmo ../../utils/clflags.cmo \
../../utils/misc.cmo ../../utils/warnings.cmo \
../../parser/linenum.cmo ../../parser/location.cmo \
../../ocaml/parsing/longident.cmo \
../../ocaml/parsing/lexer.cmo ../../ocaml/parsing/syntaxerr.cmo \
../../ocaml/parsing/parser.cmo ../../ocaml/parsing/parse.cmo \
../../parser/nlexer.cmo ../../parser/nsyntaxerr.cmo \
../../parser/nparser.cmo ../../parser/postparse.cmo \
../../parser/nparse.cmo \
utils.cmo ncamldep.cmo nmakegen.cmo
all: maken
maken: $(OBJ)
$(NCAMLC) $(INCLUDES) -o nmakegen.exe -custom unix.cma $(OBJ)
opt: $(OBJ:.cmo=.cmx)
$(NCAMLO) $(INCLUDES) -o nmakegen.exe -custom unix.cmxa $(OBJ:.cmo=.cmx)
install:
cp nmakegen.exe $(BINDIR)/nmakegen.exe
.SUFFIXES:
.SUFFIXES: .ml .mli .n .cmo .cmi .cmx
.ml.cmo:
$(NCAMLC) $(COMPFLAGS) -c $<
.mli.cmi:
$(NCAMLC) $(COMPFLAGS) -c $<
.n.cmo:
$(NCAMLC) $(COMPFLAGS) -c $<
.n.cmx:
$(NCAMLO) $(COMPFLAGS) -c $<
clean::
rm -f *.cm[iox] nmakegen.exe
syntax highlighted by Code2HTML, v. 0.9.1