summaryrefslogtreecommitdiff
blob: fb896684115826f05ced55f86243a544f77cd0b9 (plain)
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
--- 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)\""