**** Merged from MCS ****
[mono-project.git] / mcs / jay / Makefile
blob3e0b74ca660bb7b4dcc9827e1943380bbb887ad1
1 thisdir := jay
2 SUBDIRS :=
3 include ../build/rules.make
5 LOCAL_CFLAGS = -DSKEL_DIRECTORY=\""$(prefix)/share/jay"\"
7 sources = closure.c error.c lalr.c lr0.c main.c mkpar.c output.c reader.c \
8 symtab.c verbose.c warshall.c
10 datafiles = ACKNOWLEDGEMENTS NEW_FEATURES NOTES README README.jay skeleton \
11 skeleton.cs
13 DISTFILES = $(datafiles) $(sources) jay.1 $(wildcard *.h)
15 all-local: jay
17 install-local: jay
18 $(MKINSTALLDIRS) $(DESTDIR)$(prefix)/bin
19 $(MKINSTALLDIRS) $(DESTDIR)$(prefix)/share/jay
20 $(MKINSTALLDIRS) $(DESTDIR)$(prefix)/man/man1
21 $(INSTALL_BIN) jay $(DESTDIR)$(prefix)/bin
22 for datafile in $(datafiles) ; do \
23 $(INSTALL_DATA) $$datafile $(DESTDIR)$(prefix)/share/jay ; \
24 done
25 $(INSTALL_DATA) jay.1 $(DESTDIR)$(prefix)/man/man1
27 uninstall-local:
28 -rm -f $(DESTDIR)$(prefix)/bin/jay
29 for datafile in $(datafiles) ; do \
30 rm -f $(DESTDIR)$(prefix)/share/jay/$$datafile ; \
31 done
33 clean-local:
34 rm -f jay *.o *.exe *.pdb
36 dist-local: dist-default
38 test-local run-test-local run-test-ondotnet-local:
40 jay: $(sources:.c=.o)
41 $(CCOMPILE) -o $@ $^
43 %.o: %.c
44 $(CCOMPILE) -c -o $@ $^