File: Makefile

package info (click to toggle)
gmod 3.1-11
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,352 kB
  • ctags: 809
  • sloc: cpp: 7,772; makefile: 77
file content (63 lines) | stat: -rw-r--r-- 1,905 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# 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.

# Use the next line for shared libqt
LIBS = -lX11 -lqt-mt
# Use the next line for static libqt
#LIBS = -lX11 /usr/local/qt/lib/libqt.a

DEFINES = -DUSE_X -DAWE_SUPPORT
INCLUDES = -I/usr/include/qt3
LIBDIRS = -L/usr/X11R6/lib
CC = g++

CFLAGS = -O2 -fomit-frame-pointer -W -Wall -g
#CFLAGS = -Wall -g

# Where to put the binary and man page
BINDIR = /usr/local/bin
MANDIR = /usr/local/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 OptShell.C parse.C \
	play_mod.C play_note.C proc_input.C \
	read_rc.C TopShell.C TrackShell.C QueueShell.C SampleShell.C \
	CommentShell.C Envelope.C Sample.C \
	Six69.C mod.C mtm.C s3m.C ult.C xm.C Voice.C Sequencer2.C \
	VoiceGUS.C VoiceAWE.C

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

MOCFILES = Sequencer.moc OptShell.moc TopShell.moc TrackShell.moc SampleShell.moc CommentShell.moc QueueShell.moc

xgmod: .depend $(MOCFILES) $(OFILES)
	$(CC) -o xgmod $(LIBDIRS) $(OFILES) $(LIBS)

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

%.moc: %.h
	/usr/bin/moc $< -o $@

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

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

.PHONY: install
install: xgmod
	install -o bin -g bin -m 755 -s xgmod $(BINDIR)/xgmod
	install -o bin -g info -m 644 xgmod.1 $(MANDIR)/xgmod.1

ifeq (.depend,$(wildcard .depend))
include .depend
endif