Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
| 1 |
CC=gcc |
| 2 |
#CFLAGS+=-O2 |
| 3 |
#Decomment this line if you use Linux: |
| 4 |
CFLAGS+=-O2 -lm |
| 5 |
|
| 6 |
DESTDIR=/usr/local |
| 7 |
|
| 8 |
default: GRAMophone.tab.c |
| 9 |
$(CC) $(CFLAGS) -o gramophone2 GRAMophone.c\ |
| 10 |
grammyVM.c init.c midicode.c\ |
| 11 |
midifile.c expcode.c debug.c errors.c\ |
| 12 |
hash.c GRAMophone.tab.c |
| 13 |
|
| 14 |
GRAMophone.tab.c: lex.yy.c |
| 15 |
bison -d GRAMophone.y |
| 16 |
|
| 17 |
lex.yy.c: |
| 18 |
flex GRAMophone.l |
| 19 |
|
| 20 |
clean: |
| 21 |
rm -f y* lex* GRAMophone.tab.* gramophone2 |
| 22 |
|
| 23 |
install: |
| 24 |
mkdir -p $(DESTDIR)/bin |
| 25 |
install gramophone2 $(DESTDIR)/bin |
| 26 |
install -d $(DESTDIR)/share/man/man1 |
| 27 |
install -m 0644 man/man1/gramophone2.1 $(DESTDIR)/share/man/man1 |
| 28 |
install -d $(DESTDIR)/share/man/it/man1 |
| 29 |
install -m 0644 man/it/man1/gramophone2.1 $(DESTDIR)/share/man/it/man1 |
| 30 |
|
| 31 |
uninstall: |
| 32 |
rm -f $(DESTDIR)/bin/gramophone2\ |
| 33 |
$(DESTDIR)/share/man/man1/gramophone2.1\ |
| 34 |
$(DESTDIR)/share/man/it/man1/gramophone2.1 |