blob: 1fbc29fb7d5c69de18f65bc565fac645c5ef84b7 (
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
25
26
27
28
|
--- Makefile
+++ Makefile
@@ -5,9 +5,10 @@
PACKAGE = genromfs
VERSION = 0.5.2
-CC = gcc
-CFLAGS = -O2 -Wall -DVERSION=\"$(VERSION)\"#-g#
-LDFLAGS = -s#-g
+CC ?= gcc
+CFLAGS ?= -O2
+CFLAGS += -Wall -DVERSION=\"$(VERSION)\"#-g#
+LDFLAGS ?= -s#-g
DISTDIR = $(PACKAGE)-$(VERSION)
@@ -16,9 +17,9 @@
readme-kernel-patch genrommkdev romfs.txt \
checkdist
-prefix = /usr
+prefix = $(DESTDIR)/usr
bindir = $(prefix)/bin
-mandir = $(prefix)/man
+mandir = $(prefix)/share/man
genromfs: genromfs.o
$(CC) $(LDFLAGS) genromfs.o -o genromfs
|