aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/flasher/files/patch-Makefile
blob: be95ea4770ada49d5fea3591504fb495daa8ee89 (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
--- Makefile.orig   2002-07-03 13:22:08.000000000 +0800
+++ Makefile    2014-06-27 00:45:38.945108983 +0800
@@ -1,8 +1,8 @@
 
-CFLAGS = -Wall -O
+CFLAGS += -Wall
 
-CC = gcc
-DESTDIR=/usr/local
+CC ?= gcc
+#DESTDIR= ${PREFIX}
 
 all: flasher man
 
@@ -16,8 +16,8 @@ man: flasher.1.gz
 
 install: flasher man
    strip flasher
-   install flasher $(DESTDIR)/sbin/flasher
-   install flasher.1.gz $(DESTDIR)/man/man1
+   install flasher $(DESTDIR)${PREFIX}/sbin/flasher
+   install flasher.1.gz $(DESTDIR)${PREFIX}/man/man1
    
 clean:
    rm -f *.o flasher flasher.1.gz