File: Makefile

package info (click to toggle)
xskat 4.0-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 956 kB
  • sloc: ansic: 19,233; makefile: 40; sh: 9
file content (55 lines) | stat: -rw-r--r-- 1,679 bytes parent folder | download | duplicates (5)
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

#   xskat - a card game for 1 to 3 players.
#   Copyright (C) 2000  Gunter Gerhardt
#
#   This program is free software; you can redistribute it freely.
#   Use it at your own risk; there is NO WARRANTY.
#
#   Redistribution of modified versions is permitted
#   provided that the following conditions are met:
#   1. All copyright & permission notices are preserved.
#   2.a) Only changes required for packaging or porting are made.
#     or
#   2.b) It is clearly stated who last changed the program.
#        The program is renamed or
#        the version number is of the form x.y.z,
#        where x.y is the version of the original program
#        and z is an arbitrary suffix.

CFLAGS	=
LDFLAGS	= -L/usr/X11R6/lib -lX11
# perhaps you need one of: -lsocket -lnsl

#DEFL    = -DDEFAULT_LANGUAGE=\"german\"
DEFL   = -DDEFAULT_LANGUAGE=\"english\"

DEFI    = -DDEFAULT_IRC_SERVER=\"irc.fu-berlin.de\"

SHELL   = /bin/sh
OBJECTS	= skat.o ramsch.o null.o bitmaps.o xio.o xdial.o irc.o text.o

xskat: $(OBJECTS)
	$(CC) $(OBJECTS) $(LDFLAGS) -o $@

clean:
	rm -f $(OBJECTS) xskat

ckdef:
	@echo Checking defs.h;\
	sed -n "1,/######/p" defs.h > defs;\
	cat *.c|sed  -n 's/^\([a-zA-Z].*\)(.*)/\1();/p' >> defs;\
	diff defs defs.h || mv defs defs.h;\
	rm -f defs

text.o: text.c text.h defs.h
	$(CC) $(CFLAGS) $(DEFL) -c $< -o $@

irc.o: irc.c irc.h defs.h skat.h xio.h xdial.h text.h
	$(CC) $(CFLAGS) $(DEFI) -c $< -o $@

skat.o: skat.h defs.h text.h
null.o: null.h defs.h skat.h
ramsch.o: ramsch.h defs.h skat.h
xio.o: xio.h defs.h skat.h bitmaps.h irc.h text.h
xdial.o: xdial.h defs.h xio.h skat.h ramsch.h irc.h text.h
bitmaps.o: bitmaps.h symbs.xbm symbl.xbm icon.xbm cards.c