diff options
Diffstat (limited to 'mcs/jay')
-rw-r--r-- | mcs/jay/Makefile | 38 | ||||
-rw-r--r-- | mcs/jay/makefile | 19 | ||||
-rw-r--r-- | mcs/jay/makefile.gnu | 23 |
3 files changed, 38 insertions, 42 deletions
diff --git a/mcs/jay/Makefile b/mcs/jay/Makefile new file mode 100644 index 00000000000..6646c4a12fc --- /dev/null +++ b/mcs/jay/Makefile @@ -0,0 +1,38 @@ +thisdir := jay +SUBDIRS := +include ../build/rules.make + +LOCAL_CFLAGS = -DSKEL_DIRECTORY=\""$(prefix)/share/jay"\" + +sources = closure.c error.c lalr.c lr0.c main.c mkpar.c output.c reader.c \ + symtab.c verbose.c warshall.c + +datafiles = ACKNOWLEDGEMENTS NEW_FEATURES NOTES README README.jay skeleton \ + skeleton.cs + +DISTFILES = $(datafiles) $(sources) jay.1 $(wildcard *.h) + +all-local: jay + +install-local: jay + $(MKINSTALLDIRS) $(DESTDIR)$(prefix)/bin + $(MKINSTALLDIRS) $(DESTDIR)$(prefix)/share/jay + $(MKINSTALLDIRS) $(DESTDIR)$(prefix)/man/man1 + $(INSTALL_BIN) jay $(DESTDIR)$(prefix)/bin + for datafile in $(datafiles) ; do \ + $(INSTALL_DATA) $$datafile $(DESTDIR)$(prefix)/share/jay ; \ + done + $(INSTALL_DATA) jay.1 $(DESTDIR)$(prefix)/man/man1 + +clean-local: + rm -f jay *.o + +dist-local: dist-default + +test-local run-test-local: + +jay: $(sources:.c=.o) + $(CCOMPILE) -o $@ $^ + +%.o: %.c + $(CCOMPILE) -c -o $@ $^ diff --git a/mcs/jay/makefile b/mcs/jay/makefile deleted file mode 100644 index a04d7db661b..00000000000 --- a/mcs/jay/makefile +++ /dev/null @@ -1,19 +0,0 @@ -all = jay -c = closure.c error.c lalr.c lr0.c main.c mkpar.c output.c reader.c \ - symtab.c verbose.c warshall.c -prefix = /usr - -CFLAGS= -DSKEL_DIRECTORY=\""$(prefix)/share/jay"\" - -jay: $(c:.c=.o) - $(CC) -o $@ $(CFLAGS) $(c:.c=.o) - -clean: - rm -f jay *.o - -windows: jay - -linux: jay - -install: - make -f makefile.gnu install diff --git a/mcs/jay/makefile.gnu b/mcs/jay/makefile.gnu deleted file mode 100644 index 82b1d0d427e..00000000000 --- a/mcs/jay/makefile.gnu +++ /dev/null @@ -1,23 +0,0 @@ -INSTALL = /usr/bin/install -prefix = /usr - -datafiles = ACKNOWLEDGEMENTS NEW_FEATURES NOTES README README.jay skeleton skeleton.cs - -all: - $(MAKE) -f makefile linux - -clean: - $(MAKE) -f makefile clean - -install: all - mkdir -p $(prefix)/bin - mkdir -p $(prefix)/share/jay - mkdir -p $(prefix)/man/man1 - $(INSTALL) -m 755 jay $(prefix)/bin - for datafile in $(datafiles) ; do \ - $(INSTALL) -m 644 $$datafile $(prefix)/share/jay ; \ - done - $(INSTALL) -m 644 jay.1 $(prefix)/man/man1 - -test: - |