Makefile revision d64c27888613a81c9634cd939dd05618175465ef
d657c51f14601d0235434ffb78cf6ac0f27cc83cLennart Poettering### Makefile --- CSP-CASL parser in hets framework
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering## Author: a.m.gimblett@swan.ac.uk
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering## Version: $Id$
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering## Keywords:
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering## X-URL:
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart PoetteringGHCINCLUDES = ..:../ghc:../Common:../CASL
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering
9fa2f41077b2d76685058836f602f38715b5eef3Kay SieversGHCOPTS = --make -fglasgow-exts -Wall -i$(GHCINCLUDES)
9fa2f41077b2d76685058836f602f38715b5eef3Kay Sievers
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart PoetteringBINS = c3po print
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering
9fa2f41077b2d76685058836f602f38715b5eef3Kay SieversSOURCES = Main.hs AS_CSP_CASL.hs CCKeywords.hs CCLexer.hs \
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering CCToken.hs Parse_hugo.hs
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering.PHONY: test
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poetteringdefault: c3po
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poetteringall: $(BINS)
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poetteringclean:
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering @find . -name '*~' -exec rm -vf {} ';'
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering @find . -name '*.o' -exec rm -vf {} ';'
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering @find . -name '*.hi' -exec rm -vf {} ';'
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering @find . -name '*.der.hs' -exec rm -vf {} ';'
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering @find . -name 'ATC*.hs' -exec rm -vf {} ';'
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering @rm -vf $(BINS)
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering
673eab9bf0d2d79a72f3d7c430807b8786de7ee3Lennart Poettering
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poetteringc3po: $(SOURCES)
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering ghc $(GHCOPTS) -o c3po Main.hs #MixfixParser.hs
f28cbd0382ca53baa99803bbc907a469fbf68128Kay Sievers
673eab9bf0d2d79a72f3d7c430807b8786de7ee3Lennart Poetteringprint: print_csp.hs
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering ghc $(GHCOPTS) -o print print_csp.hs
b7f44df59a7f76d2bd5302df2f5ec9be9b7fa2faLennart Poettering
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay Sieverstest: c3po
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay Sievers ./c3po test/amg.csp-casl
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay Sievers# ./c3po test/*.csp-casl
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay Sievers
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay Sievers### Makefile ends here
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay Sievers