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 34 35 36 37 38
|
#! /bin/sh /usr/share/dpatch/dpatch-run
## 50_makefile.dpatch by Damián Viano <debian@damianv.com.ar>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Fixes Makefile to make it more flexible and cleaner
@DPATCH@
diff -Nura yeahconsole-0.3.4/Makefile yeahconsole-0.3.4.r.bk/Makefile
--- yeahconsole-0.3.4/Makefile 2006-01-14 12:54:05.000000000 -0300
+++ yeahconsole-0.3.4.r.bk/Makefile 2006-07-01 17:38:06.000000000 -0300
@@ -1,24 +1,15 @@
TARGET = yeahconsole
-CC = gcc
-#CC = cc
INSTALL = install
-PREFIX = /usr/local
+PREFIX ?= /usr/local
-LIBS = -lX11
-INCLUDES = -I/usr/X11R6/include
-LIB_DIRS = -L/usr/X11R6/lib
-FLAGS = -Os -Wall
+LDFLAGS += -lX11
+CFLAGS += -Wall
OBJECTS := yeahconsole.o
SOURCES := yeahconsole.c
$(TARGET): $(OBJECTS)
- $(CC) $(DEFINES) $(INCLUDES) $(LIB_DIRS) $(LIBS) -o $@ $<
- strip $@
-
-$(OBJECTS): $(SOURCES)
- $(CC) $(FLAGS) $(DEFINES) $(INCLUDES) $(LIB_DIRS) -c -o $@ $<
clean:
rm -rf $(TARGET) $(OBJECTS)
|