summaryrefslogtreecommitdiff
path: root/packages/maemo/tscalib/makefile.patch
blob: 7bfab4f142b01e30ef1ae26552ef26a08e648beb (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
--- Makefile.orig	2005-06-20 18:44:26.000000000 +0200
+++ Makefile	2005-06-20 18:43:56.000000000 +0200
@@ -1,6 +1,4 @@
 
-CC = gcc
-CFLAGS = -Os
 LIBS = -lts
 PREFIX = /usr/local
 
@@ -20,11 +18,11 @@
 	rm -rf $(OBJECTS) $(TARGET) .depends
 
 install: $(TARGET)
-	install -d -m 755 $(PREFIX)/bin
-	install -c -m 755 $(TARGET) $(PREFIX)/bin/$(TARGET)
+	install -d -m 755 $(DESTDIR)/$(PREFIX)/bin
+	install -c -m 755 $(TARGET) $(DESTDIR)/$(PREFIX)/bin/$(TARGET)
 
 .depends:
-	$(CC) -MM $(SOURCES) > .depends
+	$(CC) -MM $(CFLAGS) $(SOURCES) > .depends
 
 
 -include .depends