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 69 70 71 72 73 74 75 76 77 78
|
VERSION = crossfire-client-1.2.0
MKDIR = /bin/mkdir
CP = /bin/cp
TAR = /bin/tar
RM = /bin/rm
TARGET =
CFLAGS = -g -O2 -DOSS_SOUND -DBINDIR='"/usr/games/"' -Wall -I.
LDFLAGS =
CC = gcc
LIBS = -lpng -lz -lm
INSTALL = /usr/bin/install -c
DEPEND = /usr/bin/X11/makedepend
PERL = /usr/bin/perl
SOUND_DIR = /usr/share/games/crossfire/sounds/
DMALLOC_LIB =
AR = /usr/bin/ar
RANLIB = ranlib
INCLUDES = -I.. -I../common -I.
SND_LIBS= -lm
prefix=/usr
exec_prefix=${prefix}
bindir=/usr/games
mandir=${prefix}/man/man1
soundlistdir=${prefix}/etc/sound/events
desktopdir=/usr/share/gnome/apps/Games
pixmapsdir=/usr/share/pixmaps
HEADERS= \
soundsdef.h
SOURCES = \
cfsndserv.c
EXTRA_DIST = \
Makefile.in \
sounds \
sounds.dist
SND_OBJS= $(SOURCES:.c=.o)
all: soundsdef.h cfsndserv
proto:
echo "Nothing to do for proto"
sounds: sounds.dist Makefile
$(PERL) -p -e s#/usr/local/lib/sounds#$(SOUND_DIR)# sounds.dist > sounds
soundsdef.h: sounds
$(PERL) ../utils/deftoheader.pl sounds soundsdef.h def_sounds
.c.o:
$(CC) $(CFLAGS) $(INCLUDES) -c $*.c
cfsndserv: $(SND_OBJS) soundsdef.h
$(CC) -o cfsndserv $(SND_OBJS) $(LDFLAGS) $(SND_LIBS) $(DMALLOC_LIB)
archive:
$(MKDIR) /tmp/$(VERSION)/sound-src
$(CP) $(HEARDERS) $(SOURCES) $(EXTRA_DIST) /tmp/$(VERSION)/sound-src
clean::
$(RM) -f $(SND_OBJS)
distclean::
$(MAKE) clean
$(RM) -f Makefile cfsndserv
install:
$(INSTALL) -d ${bindir}
$(INSTALL) cfsndserv ${bindir}
depend:
$(DEPEND) $(DEPENDFLAGS) -- $(CFLAGS) $(INCLUDES) -- $(PROTOSOURCES) $(SND_SOURCES) gx11.c
|