blob: 667448e1a20a964b412d4ea0d79a7fa62b95096a (
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
|
--- a/Makefile
+++ b/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
|