File: Makefile.gmod

package info (click to toggle)
gmod 3.1-2
  • links: PTS
  • area: main
  • in suites: hamm, slink
  • size: 1,348 kB
  • ctags: 808
  • sloc: cpp: 7,755; makefile: 82
file content (50 lines) | stat: -rw-r--r-- 1,576 bytes parent folder | download | duplicates (2)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# AWE_SUPPORT will compile in support for awedrv (for AWE cards)
# USE_LOCAL will cause gmod to use a copy of soundcard.h found in the
# current directory.
# USE_NCURSES will compile gmod with support for special keys (arrows, etc).
# The ncurses library must be installed to compile with this defined.
# USE_X will compile gmod with and X interface.
# Note:  do not define both USE_NCURSES and USE_X at the same time.

DEFINES = -DUSE_NCURSES -DAWE_SUPPORT -I/usr/src/awedrv
LIBS = -lncurses

CFLAGS = -O2 -m486 -fomit-frame-pointer -fno-strength-reduce -w -I/usr/include/ncurses
#CFLAGS = -g -Wall -I/usr/include/ncurses
CC = g++

# Where to put the binary and man page
BINDIR = debian/xgmod/tmp/usr/bin
MANDIR = debian/xgmod/tmp/usr/man/man1

CFILES = compress.C cvt_period.C Sequencer.C gmod.C init.C \
	load_669.C load_mod.C load_mtm.C load_s3m.C load_ult.C load_xm.C \
	misc.C parse.C Sample.C play_mod.C play_note.C \
	proc_event.C proc_input.C read_rc.C signals.C Envelope.C \
	CursesScr.C Voice.C Six69.C mod.C mtm.C s3m.C ult.C xm.C Sequencer2.C \
	SampleShell.C VoiceAWE.C VoiceGUS.C

OFILES := $(patsubst %.C, %.o, $(CFILES))

gmod: .depend $(OFILES)
	$(CC) -o gmod $(OFILES) $(LIBS)

.C.o:
	$(CC) $(CFLAGS) $(DEFINES) -c $<

.depend:
	$(CC) $(DEFINES) -MM $(CFILES) > .depend

#clean added by Peter Federighi
.PHONY: clean
clean:
	rm -f $(OFILES) gmod core .depend

.PHONY: install
install: gmod
	install -o bin -g bin -m 755 -s gmod $(BINDIR)/gmod
	install -o bin -g info -m 644 gmod.1 $(MANDIR)/gmod.1
 
ifeq (.depend,$(wildcard .depend))
include .depend
endif