# # Makefile for the lexer generator, that emits codes in N. # Adapted from the Objective Caml's Lex. # # Kwangkeun Yi # # Copyright(c) 2000-2004 Research On Program Analysis System # http://ropas.snu.ac.kr/n # # All rights reserved. This file is distributed under the terms of # the Q Public License version 1.0. (http://www.troll.no/qpl/) # # The lexer generator !include ../../config/Makefile.nt NCAMLC=..\..\boot\ncamlrun ..\..\nmlc -I ../../boot COMPFLAGS= LINKFLAGS= CAMLYACC=..\..\boot\ocamlyacc CAMLLEX=..\..\boot\ncamlrun ../../boot/ocamllex YACCFLAGS= DEPFLAGS= OBJS=parser.cmo lexer.cmo lexgen.cmo compact.cmo output.cmo main.cmo all: nlex nlex: $(OBJS) $(NCAMLC) $(LINKFLAGS) -o nlex.exe $(OBJS) clean:: rm -f nlex.exe rm -f *.cm[iox] *.[so] *.obj *~ parser.ml parser.mli: parser.mly $(CAMLYACC) $(YACCFLAGS) parser.mly clean:: rm -f parser.ml parser.mli beforedepend:: parser.ml parser.mli lexer.ml: lexer.mll $(CAMLLEX) lexer.mll clean:: rm -f lexer.ml beforedepend:: lexer.ml install: cp nlex.exe $(BINDIR)\nlex.exe .SUFFIXES: .SUFFIXES: .ml .cmo .mli .cmi .ml.cmo: $(NCAMLC) -c $(COMPFLAGS) $< .mli.cmi: $(NCAMLC) -c $(COMPFLAGS) $< depend: beforedepend $(CAMLDEP) *.mli *.ml > .depend include .depend