27 lines
744 B
Plaintext
27 lines
744 B
Plaintext
--- Makefile.orig Sat Dec 11 01:08:13 2004
|
|
+++ Makefile Tue Nov 1 17:39:44 2005
|
|
@@ -1,15 +1,18 @@
|
|
objects := $(patsubst %.c,%.o,$(wildcard *.c))
|
|
|
|
-CFLAGS= -O3 -Wall -pedantic -ansi -DNUTDIR=\".nutdb\" -DFOODDIR=\"/usr/local/lib/nut\"
|
|
+CFLAGS+= -Wall -pedantic -ansi -DNUTDIR=\".nutdb\" -DFOODDIR=\"$(PREFIX)/lib/nutdb\"
|
|
|
|
nut: $(objects)
|
|
- gcc ${CFLAGS} -lm -o nut $(objects)
|
|
- strip nut
|
|
-
|
|
+ ${CC} ${CFLAGS} -lm -o nut $(objects)
|
|
+ # strip nut
|
|
deps:
|
|
makedepend *.c
|
|
|
|
clean:
|
|
rm -f *.o nut preprocess/*.o preprocess/dbjw
|
|
|
|
-# DO NOT DELETE
|
|
+install:
|
|
+ mkdir $(PREFIX)/lib/nutdb/
|
|
+ ${BSD_INSTALL_PROGRAM} nut $(PREFIX)/bin/nutdb
|
|
+ ${BSD_INSTALL_MAN} nut.1 $(PREFIX)/man/man1/nutdb.1
|
|
+ ${BSD_INSTALL_DATA} raw.data/* $(PREFIX)/lib/nutdb/
|