You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/games-strategy/tornado/files/tornado-1.4-gentoo.patch

27 lines
955 B

--- Makefile.old 2009-02-12 12:42:25.000000000 +0100
+++ Makefile 2009-02-12 12:44:52.000000000 +0100
@@ -1,10 +1,9 @@
-CC = gcc
MAKE = make
-LDFLAGS = -lncurses
+LDLIBS = -lncurses
OBJFILES = main.o draw.o erwin.o network.o scores.o
-PREFIX = /usr/local
-LOCALEPATH = /usr/local/share/locale
-CFLAGS = -Wall -O2 -DPREFIX="\"$(PREFIX)\"" -DLOCALEPATH="\"$(LOCALEPATH)\""
+PREFIX = /usr
+LOCALEPATH = /usr/share/locale
+CFLAGS += -DPREFIX="\"$(PREFIX)\"" -DLOCALEPATH="\"$(LOCALEPATH)\""
VERSION = `grep " VERSION" version.h | sed s/\"//g | sed s/\#define\ VERSION\ //`
LOCALES = de
MAN = doc/man
@@ -25,7 +24,7 @@
$(MAKE) -C $(MAN) all
tornado: $(OBJFILES)
- $(CC) $(LDFLAGS) $(OBJFILES) -o tornado
+ $(CC) $(LDFLAGS) $(OBJFILES) $(LDLIBS) -o tornado
debug: tornado.6 locales
gcc -g -ggdb -Wall -ansi -pedantic -o tornado draw.c main.c erwin.c network.c scores.c -lncurses -DPREFIX="\"$(PREFIX)\"" -DLOCALEPATH="\"$(LOCALEPATH)\""