32 lines
991 B
Text
32 lines
991 B
Text
|
--- Makefile.orig 2010-12-08 10:03:32.000000000 +0100
|
||
|
+++ Makefile 2011-04-23 17:09:50.000000000 +0200
|
||
|
@@ -1,21 +1,22 @@
|
||
|
srcdir = .
|
||
|
|
||
|
-CC=gcc
|
||
|
-CFLAGS += -O2
|
||
|
-
|
||
|
+CC?=gcc
|
||
|
+CFLAGS +=
|
||
|
+INI_FILE_fmax?="/usr/share/games/fairymax/fmax.ini"
|
||
|
+INI_FILE_qmax?="/usr/share/games/fairymax/qmax.ini"
|
||
|
|
||
|
ALL= fairymax shamax maxqi fairymax.6.gz
|
||
|
|
||
|
all: ${ALL}
|
||
|
|
||
|
fairymax: fairymax.c
|
||
|
- $(CC) $(CFLAGS) -DINI_FILE=\"/usr/share/games/fairymax/fmax.ini\" fairymax.c -o fairymax
|
||
|
+ $(CC) $(CFLAGS) -DINI_FILE=\"${INI_FILE_fmax}\" fairymax.c -o fairymax
|
||
|
|
||
|
shamax: fairymax.c
|
||
|
- $(CC) $(CFLAGS) -DINI_FILE=\"/usr/share/games/fairymax/fmax.ini\" -DSHATRANJ fairymax.c -o shamax
|
||
|
+ $(CC) $(CFLAGS) -DINI_FILE=\"${INI_FILE_fmax}\" -DSHATRANJ fairymax.c -o shamax
|
||
|
|
||
|
maxqi: maxqi.c
|
||
|
- $(CC) $(CFLAGS) -DINI_FILE=\"/usr/share/games/fairymax/qmax.ini\" maxqi.c -o maxqi
|
||
|
+ $(CC) $(CFLAGS) -DINI_FILE=\"${INI_FILE_qmax}\" maxqi.c -o maxqi
|
||
|
|
||
|
install: ${ALL} ${srcdir}/data/*
|
||
|
cp -u ${srcdir}/fairymax $(DESTDIR)/usr/games
|