aboutsummaryrefslogtreecommitdiffstats
path: root/x11/yeahconsole/files/patch-Makefile
blob: 526cb8be044b26b858c8d0a7915c08a8686142e3 (plain) (blame)
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 18:54:05.000000000 +0300
+++ Makefile    2008-04-30 12:23:01.000000000 +0400
@@ -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)