File: Makefile

package info (click to toggle)
gramophone2 0.8.13a-3.6
  • links: PTS
  • area: main
  • in suites: sid
  • size: 544 kB
  • sloc: ansic: 2,707; yacc: 1,873; lex: 308; makefile: 33
file content (35 lines) | stat: -rw-r--r-- 893 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
CC=gcc
#CFLAGS+=-O2
#Decomment this line if you use Linux:
CFLAGS+=-O2
LDLIBS+=-lm

DESTDIR=/usr/local

default:		GRAMophone.tab.c
			$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o gramophone2 GRAMophone.c\
			grammyVM.c init.c midicode.c\
			midifile.c expcode.c debug.c errors.c\
			hash.c GRAMophone.tab.c $(LDLIBS)

GRAMophone.tab.c:	lex.yy.c
			bison -d GRAMophone.y

lex.yy.c:
			flex GRAMophone.l

clean:
			rm -f y* lex* GRAMophone.tab.* gramophone2

install:
			mkdir -p $(DESTDIR)/bin
			install gramophone2 $(DESTDIR)/bin
			install -d $(DESTDIR)/share/man/man1
			install -m 0644 man/man1/gramophone2.1 $(DESTDIR)/share/man/man1
			install -d $(DESTDIR)/share/man/it/man1
			install -m 0644 man/it/man1/gramophone2.1 $(DESTDIR)/share/man/it/man1	

uninstall:
			rm -f $(DESTDIR)/bin/gramophone2\
			$(DESTDIR)/share/man/man1/gramophone2.1\
			$(DESTDIR)/share/man/it/man1/gramophone2.1