SOURCES: rolldice-Makefile.patch (NEW) - pass CFLAGS and LDFLAGS, set prope...

lisu lisu at pld-linux.org
Wed Dec 17 12:21:19 CET 2008


Author: lisu                         Date: Wed Dec 17 11:21:19 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- pass CFLAGS and LDFLAGS, set proper access path

---- Files affected:
SOURCES:
   rolldice-Makefile.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/rolldice-Makefile.patch
diff -u /dev/null SOURCES/rolldice-Makefile.patch:1.1
--- /dev/null	Wed Dec 17 12:21:21 2008
+++ SOURCES/rolldice-Makefile.patch	Wed Dec 17 12:21:14 2008
@@ -0,0 +1,27 @@
+--- rolldice-1.10.orig/Makefile~	2008-12-17 12:14:18.000000000 +0100
++++ rolldice-1.10.orig/Makefile	2008-12-17 12:13:52.000000000 +0100
+@@ -1,6 +1,6 @@
+ # Edited for Debian GNU/Linux
+ DESTDIR = 
+-BIN = $(DESTDIR)/usr/games
++BIN = $(DESTDIR)/usr/bin
+ MAN = $(DESTDIR)/usr/share/man/man6
+ CC = gcc
+ OBJFILES = main.o rolldice.o
+@@ -10,13 +10,13 @@
+ all: rolldice
+ 	
+ rolldice: $(OBJFILES)
+-	$(CC) $(OBJFILES) -g -o rolldice $(LIBS)
++	$(CC) $(CFLAGS) $(LDFLAGS) $(OBJFILES) -g -o rolldice $(LIBS)
+ 	
+ main.o: main.c $(INCLUDES)
+-	$(CC) -g -c main.c
++	$(CC) $(CFLAGS) -g -c main.c
+ 
+ rolldice.o: rolldice.c $(INCLUDES)
+-	$(CC) -g -c rolldice.c
++	$(CC) $(CFLAGS) -g -c rolldice.c
+ 
+ install: $(EXECFILES)
+ 	install -d $(BIN) $(MAN)
================================================================


More information about the pld-cvs-commit mailing list