summaryrefslogtreecommitdiffstats
path: root/x11/yeahconsole/files/patch-Makefile
blob: f78641689ea73b75972c1b3a78ddac840acae762 (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
30
31
32
33
--- Makefile.orig	2006-01-14 15:54:05 UTC
+++ Makefile
@@ -1,24 +1,23 @@
 TARGET = yeahconsole
-CC = gcc
+CC ?= gcc
 #CC = cc
 INSTALL = install
 
 PREFIX = /usr/local
 
 LIBS = -lX11 
-INCLUDES = -I/usr/X11R6/include 
-LIB_DIRS = -L/usr/X11R6/lib
-FLAGS = -Os -Wall
+INCLUDES = -I$(LOCALBASE)/include
+LIB_DIRS = -L$(LOCALBASE)/lib
+CFLAGS ?= -Os -Wall
 
 OBJECTS := yeahconsole.o
 SOURCES := yeahconsole.c
 
 $(TARGET): $(OBJECTS) 
-	$(CC) $(DEFINES) $(INCLUDES) $(LIB_DIRS) $(LIBS) -o $@ $<
-	strip $@
+	$(CC) $(DEFINES) $(INCLUDES) $(LIB_DIRS) $(LIBS) -o $@ $>
 
 $(OBJECTS): $(SOURCES) 
-	$(CC) $(FLAGS)  $(DEFINES) $(INCLUDES) $(LIB_DIRS) -c -o $@ $<
+	$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) $(LIB_DIRS) -c -o $@ $<
 
 clean:
 	rm -rf $(TARGET) $(OBJECTS)
OpenPOWER on IntegriCloud