Makefile revision d16796d2e67b21942cb8869a2bd7727b0c49f602
c298a419605037f5352b5ad0f67b3e06db094051Felix Gabriel Mance### Makefile --- CSP-CASL parser in hets framework
c298a419605037f5352b5ad0f67b3e06db094051Felix Gabriel Mance
81ec673ac5ab1493568d9ef7798b752ab8ee0e61Felix Gabriel Mance## Author: a.m.gimblett@swan.ac.uk
c298a419605037f5352b5ad0f67b3e06db094051Felix Gabriel Mance## Version: $Id$
c298a419605037f5352b5ad0f67b3e06db094051Felix Gabriel Mance## Keywords:
c298a419605037f5352b5ad0f67b3e06db094051Felix Gabriel Mance## X-URL:
c298a419605037f5352b5ad0f67b3e06db094051Felix Gabriel Mance
5d801400993c9671010d244646936d8fd435638cChristian MaederGHCINCLUDES = ..:../ghc:../Common:../CASL
c298a419605037f5352b5ad0f67b3e06db094051Felix Gabriel Mance
ffa6044b04fa0e31242141ff56a5d80c4233b676Felix Gabriel ManceGHCOPTS = --make -fglasgow-exts -Wall -i$(GHCINCLUDES)
aa0ca44e856c87db27e61687cbb630f270976da1Felix Gabriel Mance
5d801400993c9671010d244646936d8fd435638cChristian MaederBINS = c3po print
5d801400993c9671010d244646936d8fd435638cChristian Maeder
5d801400993c9671010d244646936d8fd435638cChristian MaederSOURCES = Main.hs AS_CSP_CASL.hs CCKeywords.hs CCLexer.hs \
c298a419605037f5352b5ad0f67b3e06db094051Felix Gabriel Mance CCToken.hs Parse_hugo.hs
c298a419605037f5352b5ad0f67b3e06db094051Felix Gabriel Mance
097bc9f18b722812d480df0f5c634d09cbca8e21Felix Gabriel Mance.PHONY: test
c298a419605037f5352b5ad0f67b3e06db094051Felix Gabriel Mance
852bd6145634dc2832b61c44678fe539bc1682d5Christian Maederdefault: c3po
090c663fcc1593c66f39a0972326799a672760d5Christian Maeder
f8c3d045dda224e92bf6bcb6288e1ee75ab54d1eChristian Maederall: $(BINS)
f8c3d045dda224e92bf6bcb6288e1ee75ab54d1eChristian Maeder
feab1106bbee4f2ea2fd48bca7106dd041e4211dFelix Gabriel Manceclean:
18ff56829e5e99383ee6106584d55bcbd8ed45e7Felix Gabriel Mance @find . -name '*~' -exec rm -vf {} ';'
668c9c725a11c0f77057152148570af853a1bc0dFelix Gabriel Mance @find . -name '*.o' -exec rm -vf {} ';'
b1162cc13e8371724e3382ae6d1cfdeb43891fbbChristian Maeder @find . -name '*.hi' -exec rm -vf {} ';'
668c9c725a11c0f77057152148570af853a1bc0dFelix Gabriel Mance @find . -name '*.der.hs' -exec rm -vf {} ';'
863fa65ac095659c6da1cde7fe7b839f1e7f60f9Felix Gabriel Mance @find . -name 'ATC*.hs' -exec rm -vf {} ';'
c298a419605037f5352b5ad0f67b3e06db094051Felix Gabriel Mance @rm -vf $(BINS)
f8c3d045dda224e92bf6bcb6288e1ee75ab54d1eChristian Maeder
c298a419605037f5352b5ad0f67b3e06db094051Felix Gabriel Mance
668c9c725a11c0f77057152148570af853a1bc0dFelix Gabriel Mancec3po: $(SOURCES)
668c9c725a11c0f77057152148570af853a1bc0dFelix Gabriel Mance ghc $(GHCOPTS) -o c3po Main.hs #MixfixParser.hs
668c9c725a11c0f77057152148570af853a1bc0dFelix Gabriel Mance
c298a419605037f5352b5ad0f67b3e06db094051Felix Gabriel Manceprint: print_csp.hs
c298a419605037f5352b5ad0f67b3e06db094051Felix Gabriel Mance ghc $(GHCOPTS) -o print print_csp.hs
c298a419605037f5352b5ad0f67b3e06db094051Felix Gabriel Mance
c298a419605037f5352b5ad0f67b3e06db094051Felix Gabriel Mancetest: c3po
c298a419605037f5352b5ad0f67b3e06db094051Felix Gabriel Mance ./c3po test/amg.csp-casl
c298a419605037f5352b5ad0f67b3e06db094051Felix Gabriel Mance# ./c3po test/*.csp-casl
c298a419605037f5352b5ad0f67b3e06db094051Felix Gabriel Mance
668c9c725a11c0f77057152148570af853a1bc0dFelix Gabriel Mance### Makefile ends here
0ec1551231bc5dfdcb3f2bd68fec7457fade7bfdFelix Gabriel Mance