1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-15 07:56:36 +00:00
freebsd-ports/devel/libowfat/files/patch-GNUmakefile
Martin Wilke 10e669e4b7 - Update to 0.25
PR:		107912
Submitted by:	Thomas-Martin Seck <tmseck@netcologne.de> (maintainer)
2007-01-15 20:06:58 +00:00

47 lines
1.4 KiB
Plaintext

--- ./GNUmakefile.orig Sat Jan 13 13:06:31 2007
+++ ./GNUmakefile Sat Jan 13 13:06:49 2007
@@ -4,10 +4,10 @@
# in /opt/diet, where they are in the default search path for my diet libc
# work but don't conflict with anything there. YMMV.
-prefix=/opt/diet
+prefix=${PREFIX}
LIBDIR=${prefix}/lib
-INCLUDEDIR=${prefix}/include
-MAN3DIR=${prefix}/man/man3
+INCLUDEDIR=${prefix}/include/libowfat
+MAN3DIR=${MANPREFIX}/man/man3
LIBS=byte.a fmt.a scan.a str.a uint.a open.a stralloc.a unix.a socket.a \
buffer.a mmap.a taia.a tai.a dns.a case.a mult.a array.a io.a \
@@ -15,14 +15,6 @@
all: t $(LIBS) libowfat.a libsocket
-CROSS=
-#CROSS=i686-mingw-
-CC=$(CROSS)gcc
-CFLAGS=-pipe -W -Wall -O2 -fomit-frame-pointer
-#CFLAGS=-pipe -Os -march=pentiumpro -mcpu=pentiumpro -fomit-frame-pointer -fschedule-insns2 -Wall
-
-# CFLAGS += -fstrict-aliasing -Wstrict-aliasing=2
-
CFLAGS += -D_REENTRANT
# startrip
@@ -162,10 +154,10 @@
errmsg.h cdb.h cdb_make.h rangecheck.h
install: libowfat.a
- install -d $(INCLUDEDIR) $(MAN3DIR) $(LIBDIR)
- install -m 644 $(INCLUDES) $(INCLUDEDIR)
- install -m 644 $(wildcard */*.3) $(MAN3DIR)
- install -m 644 libowfat.a $(LIBDIR)
+ ${INSTALL} -d $(INCLUDEDIR) $(MAN3DIR) $(LIBDIR)
+ ${BSD_INSTALL_DATA} $(INCLUDES) $(INCLUDEDIR)
+ ${BSD_INSTALL_MAN} $(wildcard */*.3) $(MAN3DIR)
+ ${BSD_INSTALL_DATA} libowfat.a $(LIBDIR)
uninstall:
rm -f $(patsubst %.h,$(INCLUDEDIR)/%.h,$(INCLUDES))