File: Makefile

package info (click to toggle)
lxmusserv 0.94-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 176 kB
  • ctags: 189
  • sloc: ansic: 1,530; makefile: 73
file content (68 lines) | stat: -rw-r--r-- 1,383 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#
# Makefile for lxmusserv 0.94
#

# Change these to fit your system
CC     = gcc

WFLAGS = -Wall -Wwrite-strings -Wshadow -W -Wcast-qual -Wmissing-declarations \
         -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls \
         -Wbad-function-cast -Wcast-align -Wpointer-arith # -Wconversion

#CFLAGS = $(WFLAGS) -O2 -mpentiumpro
#CFLAGS = -Wall -g3
CFLAGS = $(WFLAGS) -O2

ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
CFLAGS += -g
endif

AFLAGS = $(CFLAGS)
LDFLAGS = # -s
LIBS   = 

# FreeBSD options
#CFLAGS = -I. -Wall -O2 -m486 -I. -I/usr/src/sys/i386/isa/sound
#LIBS   =

INSTALL = install -s

ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
INSTALL_PROGRAM += -s
endif

DESTDIR = /usr/games
SHELL = /bin/sh

#############################################
# Nothing below this line should be changed #
#############################################

.c.s:
	$(CC) $(AFLAGS) -S -o $*.s $<

OBJS = musserver.o readwad.o playmus.o sequencer.o midi_setup.o
.DUMMY: clean realclean archive install

all: musserv

musserv: $(OBJS)
	$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(OBJS) $(LIBS)

clean:
	rm -f $(OBJS) musserv

realclean: clean
	rm -f *~

archive: realclean
	(cd .. ; tar cf - lxmusserv-0.94/*.[ch] lxmusserv-0.94/[A-Z]* \
         | gzip -9f > lxmusserv-0.94.tar.gz)

all: musserv

install: all
	$(INSTALL) musserv $(DESTDIR)/


$(OBJS): musserver.h sequencer.h