2bbf956529
The mkfs equivalent for romfs filesystem. Port created for NuttX RTOS. ROM FileSystem (ROMFS), read only filesystem, mainly for initial RAM disks of installation disks. Using this filesystem, you get a very similar feature, and even the possibility of a small kernel, with a file system which doesn't take up useful memory from the router functions in the basement of your office. PR: 259242
36 lines
847 B
Text
36 lines
847 B
Text
--- Makefile.orig 2009-02-15 10:48:15 UTC
|
|
+++ Makefile
|
|
@@ -5,7 +5,7 @@ all: genromfs
|
|
|
|
PACKAGE = genromfs
|
|
VERSION = 0.5.7
|
|
-CC = gcc
|
|
+CC = cc
|
|
CFLAGS = -O2 -Wall -DVERSION=\"$(VERSION)\"#-g#
|
|
LDFLAGS = -s#-g
|
|
|
|
@@ -17,9 +17,9 @@ FILES = COPYING NEWS ChangeLog Makefile \
|
|
checkdist \
|
|
.gitignore selftest
|
|
|
|
-prefix = /usr
|
|
-bindir = $(prefix)/bin
|
|
-mandir = $(prefix)/man
|
|
+PREFIX ?= /usr
|
|
+bindir = /bin
|
|
+mandir = /man
|
|
|
|
genromfs: genromfs.o
|
|
$(CC) $(LDFLAGS) genromfs.o -o genromfs
|
|
@@ -53,11 +53,6 @@ install-bin:
|
|
install -m 755 genromfs $(PREFIX)$(bindir)/
|
|
|
|
install-man:
|
|
- # genromfs 0.5 installed the man page in this file,
|
|
- # remove it before someone notices :)
|
|
- if [ -f $(PREFIX)$(bindir)/man8 ]; then \
|
|
- rm -f $(PREFIX)$(bindir)/man8; \
|
|
- fi
|
|
mkdir -p $(PREFIX)$(mandir)/man8
|
|
install -m 644 genromfs.8 $(PREFIX)$(mandir)/man8/
|
|
|