2
===================================================================
3
--- Makefile (revision 2)
4
+++ Makefile (working copy)
6
# BYTE_ORDER definitions installed. If AUTO_END_MODE doesn't
7
# work, use LITTLE_END_MODE on an x86, BIG_END_MODE on a
8
# 680x0 or PPC machine.
9
-#SYSTEMFLAGS = -DAUTO_END_MODE
10
+SYSTEMFLAGS = -DAUTO_END_MODE
12
# definitions for BSDI 4
13
#SYSTEMFLAGS = -DAUTO_END_MODE
15
# definitions for where the X lib and include directories are.
16
# The following are defaults that might work.
18
-XINCLUDE = /usr/include/X11
20
+#XINCLUDE = /usr/include/X11
23
# If your compiler can't find these things, try commenting out the
24
# above, and uncommenting various versions below. Also look around
26
# directories could be just about anywhere. Sigh.
28
# for Debian or SuSE Linux
29
-#XINCLUDE = /usr/X11R6/include/X11
30
-#XLIB = /usr/X11R6/lib
31
+XINCLUDE = /usr/X11R6/include/X11
32
+XLIB = /usr/X11R6/lib
35
#XINCLUDE = /usr/include/X11
37
# --------------------
39
# definition for where to install xzip executable and man page
42
+MANDIR = /usr/share/man
44
# --------------------
46
-CFLAGS = -O $(SYSTEMFLAGS) -I$(XINCLUDE)
49
LIBS = -L$(XLIB) -lX11 $(SYSTEMLIBS)
53
$(OBJS) : $(INC) extern.c version.h
56
+ $(CC) $(CFLAGS) $(SYSTEMFLAGS) -I$(XINCLUDE) -c $<
60
$(XOBJS) : $(INC) xio.h version.h
62
xio.o: xio.c xio.h greypm.bm
63
- $(CC) $(CFLAGS) -c xio.c
64
+ $(CC) $(CFLAGS) $(SYSTEMFLAGS) -I$(XINCLUDE) -c xio.c
66
xinit.o: xinit.c xio.h
67
- $(CC) $(CFLAGS) $(FONTDEFAULTLIST) -c xinit.c
68
+ $(CC) $(CFLAGS) $(SYSTEMFLAGS) -I$(XINCLUDE) $(FONTDEFAULTLIST) -c xinit.c
71
- install -s $(PROGRAM) $(DESTDIR)/bin
72
- install $(PROGRAM).1 $(DESTDIR)/man/man1
73
+ install $(PROGRAM) $(DESTDIR)/$(BINDIR)
74
+ install $(PROGRAM).1 $(DESTDIR)/$(MANDIR)/man6/$(PROGRAM).6
77
-rm -f *~ *.o $(PROGRAM) test