Debian Codegraph @

Makefile

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