49 lines
1.4 KiB
Text
49 lines
1.4 KiB
Text
$NetBSD: patch-aa,v 1.2 2001/06/15 23:04:52 wiz Exp $
|
|
|
|
--- Makefile.orig Sun Jul 12 00:27:32 1998
|
|
+++ Makefile Tue Aug 11 00:14:31 1998
|
|
@@ -57,15 +57,15 @@
|
|
#SYSTEMFLAGS = -DBIG_END_MODE
|
|
|
|
# definitions for some arbitrary little-endian system
|
|
-#SYSTEMFLAGS = -DLITTLE_END_MODE
|
|
+SYSTEMFLAGS = -DAUTO_END_MODE
|
|
|
|
# --------------------
|
|
|
|
# definitions for where the X lib and include directories are.
|
|
# The following are defaults that might work.
|
|
|
|
-XINCLUDE = /usr/include/X11
|
|
-XLIB = /usr/lib/X11
|
|
+XINCLUDE = $(X11BASE)/include
|
|
+XLIB = $(X11BASE)/lib
|
|
|
|
# If your compiler can't find these things, try commenting out the
|
|
# above, and uncommenting various versions below. Also look around
|
|
@@ -90,12 +90,12 @@
|
|
# --------------------
|
|
|
|
# definition for where to install xzip executable and man page
|
|
-DESTDIR = /usr/local
|
|
+DESTDIR = $(PREFIX)
|
|
|
|
# --------------------
|
|
|
|
CFLAGS = -O $(SYSTEMFLAGS) -I$(XINCLUDE)
|
|
-LDFLAGS =
|
|
+LDFLAGS = -Wl,-R$(X11BASE)/lib
|
|
LIBS = -L$(XLIB) -lX11 $(SYSTEMLIBS)
|
|
|
|
# definitions for the default fonts. Users can override these with X resources.
|
|
@@ -152,8 +152,8 @@
|
|
$(CC) $(CFLAGS) $(FONTDEFAULTLIST) -c xinit.c
|
|
|
|
install: $(PROGRAM)
|
|
- install -s $(PROGRAM) $(DESTDIR)/bin
|
|
- install $(PROGRAM).1 $(DESTDIR)/man/man1
|
|
+ ${BSD_INSTALL_PROGRAM} $(PROGRAM) $(DESTDIR)/bin
|
|
+ ${BSD_INSTALL_MAN} $(PROGRAM).1 $(DESTDIR)/man/man6/$(PROGRAM).6
|
|
|
|
clean :
|
|
-rm -f *~ *.o $(PROGRAM) test
|