summaryrefslogtreecommitdiff
blob: 59e8a70745669613c597e602d5ae1855c33c27c0 (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
27
28
29
--- sl.orig/Makefile	2010-08-09 21:36:45.483225339 +0200
+++ sl/Makefile	2010-08-09 21:58:23.915058929 +0200
@@ -5,13 +5,13 @@
 #	Last Modified: 1998/ 7/22
 #==========================================
 
-CC = gcc
+CC ?= gcc
 
 #DEBUGOPTS = -DDEBUG -g
 
 # For Linux 2.0.x
-LDFLAGS = -lncurses -ltermcap
-CFLAGS = -Wall -O2 -DLINUX20 $(DEBUGOPTS)
+LDLIBS = -lncurses
+CFLAGS += -Wall $(DEBUGOPTS)
 
 # For Solaris
 #LDFLAGS = -lcurses -ltermcap
@@ -19,8 +19,7 @@ CFLAGS = -Wall -O2 -DLINUX20 $(DEBUGOPTS
 
 all: sl
 
-sl: sl.c sl.h header.h Makefile
-	$(CC) $(CFLAGS) -o sl sl.c $(LDFLAGS)
+sl: sl.o
 
 clean:
 	-rm -f sl sl.o core