1 2# xskat - a card game for 1 to 3 players. 3# Copyright (C) 2000 Gunter Gerhardt 4# 5# This program is free software; you can redistribute it freely. 6# Use it at your own risk; there is NO WARRANTY. 7# 8# Redistribution of modified versions is permitted 9# provided that the following conditions are met: 10# 1. All copyright & permission notices are preserved. 11# 2.a) Only changes required for packaging or porting are made. 12# or 13# 2.b) It is clearly stated who last changed the program. 14# The program is renamed or 15# the version number is of the form x.y.z, 16# where x.y is the version of the original program 17# and z is an arbitrary suffix. 18 19# perhaps you need one of: -lsocket -lnsl 20 21#DEFL = -DDEFAULT_LANGUAGE=\"german\" 22DEFL = -DDEFAULT_LANGUAGE=\"english\" 23 24DEFI = -DDEFAULT_IRC_SERVER=\"irc.fu-berlin.de\" 25 26SHELL = /bin/sh 27OBJECTS = skat.o ramsch.o null.o bitmaps.o xio.o xdial.o irc.o text.o 28 29all: xskat 30 31xskat: $(OBJECTS) 32 $(CC) $(OBJECTS) $(LDFLAGS) -o $@ 33 34clean: 35 rm -f $(OBJECTS) xskat 36 37ckdef: 38 @echo Checking defs.h;\ 39 sed -n "1,/######/p" defs.h > defs;\ 40 cat *.c|sed -n 's/^\([a-zA-Z].*\)(.*)/\1();/p' >> defs;\ 41 diff defs defs.h || mv defs defs.h;\ 42 rm -f defs 43 44text.o: text.c text.h defs.h 45 $(CC) $(CFLAGS) $(DEFL) -c $< -o $@ 46 47irc.o: irc.c irc.h defs.h skat.h xio.h xdial.h text.h 48 $(CC) $(CFLAGS) $(DEFI) -c $< -o $@ 49 50skat.o: skat.h defs.h text.h 51null.o: null.h defs.h skat.h 52ramsch.o: ramsch.h defs.h skat.h 53xio.o: xio.h defs.h skat.h bitmaps.h irc.h text.h 54xdial.o: xdial.h defs.h xio.h skat.h ramsch.h irc.h text.h 55bitmaps.o: bitmaps.h symbs.xbm symbl.xbm icon.xbm cards.c 56