?prevdifflink? - Blame
###########################################################################
#
# Variables
#
top = .
hsmodules = $(shell find $(top) -name "*.hs")
lhsmodules = $(shell find $(top) -name "*.lhs")
modules = $(shell find $(top) -name "*.hs" -or -name "*.lhs")
# modules = $(shell find $(top) -name "*.hs" -or -name "*.lhs")
src = ./libraries
contrib = ./contrib
ucheck = $(contrib)/Smash
strategy = $(contrib)/StrategyLib-5.0/library:$(contrib)/StrategyLib-5.0/models/drift-default
haterm = $(contrib)/haterm-1.5/library
###########################################################################
#
# Instructions
#
all:
@cat instructions
###########################################################################
#
# GHC
#
ghcOpts = -XFlexibleInstances -XUndecidableInstances -XScopedTypeVariables \
-XMultiParamTypeClasses -XFunctionalDependencies -XFlexibleContexts -XRank2Types \
-XTypeSynonymInstances -XScopedTypeVariables -XIncoherentInstances \
-XGADTs -XScopedTypeVariables -XNoMonomorphismRestriction -XPatternSignatures -O2 # -fvia-C
ghcPath = $(src):$(contrib):$(ucheck):$(strategy):$(haterm)
ghcCmd = ghc
ghci:
$(ghcCmd) --interactive $(ghcOpts) -i:$(ghcPath) $(src)/HaExcel/HaExcel.hs
ghcMain:
$(ghcCmd) --interactive $(ghcOpts) -i:$(ghcPath) $(src)/HaExcel/Main.hs
gendb:
$(ghcCmd) --interactive $(ghcOpts) -i:$(ghcPath) $(src)/HaExcel/GenDB.hs
ghc:
$(ghcCmd) --make $(ghcOpts) -i:$(ghcPath) $(src)/HaExcel/Main.hs -o ./HaExcel
ghcEUSES:
$(ghcCmd) --make $(ghcOpts) -i:$(ghcPath) $(src)/HaExcel/RefactEuses.hs -o ./RefactEuses
ghcWeb:
$(ghcCmd) --make $(ghcOpts) -i:$(ghcPath) $(src)/HaExcel/MainWeb.hs -o ./HaExcelWeb
ghcQC:
$(ghcCmd) --make -prof -auto-all $(ghcOpts) -i:$(ghcPath) $(src)/HaExcel/MainTest.hs -o ./Tests
###########################################################################
#
# Cleaning
hiModules = $(shell find ./ -name "*.hi")
oModules = $(shell find ./ -name "*.o")
clean:
$(RM) -rf $(hiModules) $(oModules)
#test:
# ghc --make $(ghcOpts) -i:$(ghcPath) $(src)/HaExcel/Main.hs -o ./HaExcel
# mv HaExcel
|