Created
June 16, 2015 17:13
-
-
Save KitN/632eb07a4e709c3ff9fd to your computer and use it in GitHub Desktop.
Paradox makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.NOTPARALLEL: | |
#-- Variables | |
MINISAT = ../minisat/current-base | |
INST = ../instantiate | |
OBJS = $(MINISAT)/Solver.or $(MINISAT)/Prop.or $(INST)/MiniSatWrapper.or $(INST)/MiniSatInstantiateClause.or | |
HFLAGS = -fglasgow-exts -O2 -static -threaded | |
HSAT = -optl -static -lstdc++ -I../instantiate -I$(MINISAT) $(OBJS) | |
GHC = ghc | |
#-- Main | |
main: paradox.exe equinox.exe infinox.exe smellysox.exe | |
paradox: paradox.exe | |
smellyparadox: smellyparadox.exe | |
equinox: equinox.exe | |
infinox: infinox.exe | |
equiparadox: equiparadox.exe | |
satplay: satplay.exe | |
zoomer: zoomer.exe | |
smellysox: smellysox.exe | |
Sat.o: Sat.hs | |
$(GHC) -fglasgow-exts --make Sat.hs | |
#-- EquiParadox | |
#equiparadox.exe: Sat.o *.hs Paradox/*.hs Equinox/*.hs EquiParadox/*.hs ../instantiate/*.or ../minisat/current-base/*.or | |
# $(GHC) $(HSAT) $(HFLAGS) -main-is EquiParadox.Main.main --make EquiParadox.Main -o equiparadox | |
#-- Paradox | |
paradox.exe: Sat.o *.hs Paradox/*.hs ../instantiate/*.or ../minisat/current-base/*.or | |
$(GHC) $(HSAT) $(HFLAGS) -main-is Paradox.Main.main --make Paradox.Main -o paradox | |
smellyparadox.exe: Sat.o *.hs Paradox/*.hs ../instantiate/*.or ../minisat/current-base/*.or | |
$(GHC) $(HSAT) $(HFLAGS) -main-is Paradox.Smelly.main --make Paradox.Smelly -o smellyparadox | |
#-- Equinox | |
equinox.exe: Sat.o *.hs Equinox/*.hs ../instantiate/*.or ../minisat/current-base/*.or | |
$(GHC) $(HSAT) $(HFLAGS) -threaded -main-is Equinox.Main.main --make Equinox.Main -o equinox | |
#-- Infinox | |
infinox.exe: *.hs Infinox/*.hs | |
$(GHC) $(HFLAGS) -main-is Infinox.Main.main --make Infinox.Main -o infinox | |
#-- SatPlay | |
satplay.exe: Sat.o *.hs ../instantiate/*.or ../minisat/current-base/*.or | |
$(GHC) $(HSAT) $(HFLAGS) -main-is SatPlay.Main.main --make SatPlay.Main -o satplay | |
smellysox.exe: Sat.o SmellySox/*.hs SmellySox/Parser/Partff.hs ../instantiate/*.or ../minisat/current-base/*.or | |
$(GHC) $(HSAT) $(HFLAGS) --make SmellySox/Main -o smellysox | |
SmellySox/Parser/Partff.hs: SmellySox/tff.cf | |
bnfc -p SmellySox.Parser SmellySox/tff.cf | |
alex SmellySox/Parser/Lextff.x | |
happy SmellySox/Parser/Partff.y | |
#-- Zoomer | |
zoomer.exe: Sat.o *.hs ../instantiate/*.or ../minisat/current-base/*.or | |
$(GHC) $(HSAT) $(HFLAGS) -main-is Zoomer.Main.main --make Zoomer.Main -o zoomer | |
#-- Cleaning up | |
clean: | |
rm -f *.o *.hi paradox* equinox* infinox* satplay* Equinox/*.o Equinox/*.hi Paradox/*.o Paradox/*.hi Infinox/*.o Infinox/*.hi SatPlay/*.o SatPlay/*.hi | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment