# # Copyright (c) 2004-5 Don Stewart - http://www.cse.unsw.edu.au/~dons # Stefan Wehr - http://www.stefanwehr.de # GPL version 2 or later (see http://www.gnu.org/copyleft/gpl.html) # TOPDIR = . include $(TOPDIR)/mk/config.mk # this rule must remain first #default: KindInference.o default: boot all # # Various variables # # preprocessor for source locations in error messages PP = $(TOPDIR)/pp/logpp LAST_PATCH_DATE := $(shell darcs changes --last=1 --xml-output | sed -n "s/.*local_date='\([^']*\)'.*/\1/p") HC_OPTS += -pgmF "$(PP)" -F -DLAST_PATCH_DATE='"$(LAST_PATCH_DATE)"' BIN_DEPS += mtl #HC_OPTS += -O #HC_OPTS += -prof -auto-all #HAPPY_OPTS += -di CLEAN_FILES += Parser.hs Lexer.hs #DERIVED_HAPPY_SRCS+= Parser.hs #DERIVED_ALEX_SRCS+= Lexer.hs ALL_DIRS= . Phrac BIN= phrac HS_BINS= $(BIN) PKG = phrac LIBRARY = libphrac$(_way).a # # read in suffix rules # include $(TOPDIR)/mk/rules.mk MAKEFLAGS += --no-builtin-rules .SUFFIXES: # # Let's run the testsuite # .PHONY: check check: @( cd tests/driver ; ./check ${TEST} ) # # dependencies # Phrac/AbstractSyntax.o: Phrac/ParseSyntax.hs Phrac/Constants.o: Phrac/Constants.hs _darcs/inventory CLEAN_FILES += $(TOPDIR)/depend ifneq ($(MAKECMDGOALS),clean) ifneq ($(MAKECMDGOALS),distclean) -include $(TOPDIR)/depend endif endif