summaryrefslogtreecommitdiff
path: root/x11/xbanner/files/patch-aa
blob: 291e999b9004dd5c8fecfd0328f21c936dfce08b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
*** Makefile.orig	Tue May 13 00:55:59 1997
--- Makefile	Sat Dec 18 03:25:54 1999
***************
*** 6,27 ****
  
  .SUFFIXES: .c .o
  
! CC	=gcc
  RM	=rm
  LN	=ln
! INSTALL	=install
  CP	=cp
  TAR	=tar
  GZIP	=gzip
  
  # Binary directory for make install
! BINDIR	=/usr/local/bin/X11
  
  # Library directories for Linux
! XLIBDIR	=/usr/X11R6/lib
  
  # Include directory for gcc (if you get X11/Xlib.h: file not found)
! #INCDIR =-I/usr/X11R6/include
  
  # Library directories for the Ultrix (probably most Unixes)
  #XLIBDIR =/usr/lib/X11
--- 6,27 ----
  
  .SUFFIXES: .c .o
  
! CC	?=gcc
  RM	=rm
  LN	=ln
! INSTALL	?=install
  CP	=cp
  TAR	=tar
  GZIP	=gzip
  
  # Binary directory for make install
! BINDIR	=$(PREFIX)/bin
  
  # Library directories for Linux
! XLIBDIR	=$(LOCALBASE)/lib
  
  # Include directory for gcc (if you get X11/Xlib.h: file not found)
! INCDIR =-I$(LOCALBASE)/include
  
  # Library directories for the Ultrix (probably most Unixes)
  #XLIBDIR =/usr/lib/X11
***************
*** 34,40 ****
  	$(CC) $(INCDIR) $(CFLAGS) $(XPM) -c $*.c
  
  # Linux CFLAGS (actually generic gcc)
! CFLAGS=-Wall -O2
  
  # Want static binaries?
  #CFLAGS=-Wall -O2 -static
--- 34,40 ----
  	$(CC) $(INCDIR) $(CFLAGS) $(XPM) -c $*.c
  
  # Linux CFLAGS (actually generic gcc)
! #CFLAGS=-Wall -O2
  
  # Want static binaries?
  #CFLAGS=-Wall -O2 -static
***************
*** 48,54 ****
  # Most Linux users won't be troubled by this. Actually almost nobody will
  # be troubled by this. It just might save me a couple of emails...
  # Just change it to wherever your libX11.a resides.
! LDFLAGS=-L$(XLIBDIR)
  
  all: xbanner freetemp random_effect xb_check 
  
--- 48,54 ----
  # Most Linux users won't be troubled by this. Actually almost nobody will
  # be troubled by this. It just might save me a couple of emails...
  # Just change it to wherever your libX11.a resides.
! LDFLAGS+=-L$(XLIBDIR)
  
  all: xbanner freetemp random_effect xb_check 
  
***************
*** 70,79 ****
  xb_check: xb_check.o 
  	$(CC) $(CFLAGS) -o xb_check xb_check.o 
  
! install: freetemp xbanner xb_check 
! 	$(INSTALL) --strip --mode "0755" --owner root --group bin freetemp $(BINDIR)/freetemp
! 	$(INSTALL) --strip --mode "0755" --owner root --group bin xbanner $(BINDIR)/xbanner
! 	$(INSTALL) --strip --mode "0755" --owner root --group bin xb_check $(BINDIR)/xb_check
  
  strip: exe
  	strip xbanner freetemp xb_check random_effect
--- 70,80 ----
  xb_check: xb_check.o 
  	$(CC) $(CFLAGS) -o xb_check xb_check.o 
  
! install: freetemp xbanner xb_check random_effect 
! 	${BSD_INSTALL_PROGRAM} freetemp $(BINDIR)/freetemp
! 	${BSD_INSTALL_PROGRAM} xbanner $(BINDIR)/xbanner
! 	${BSD_INSTALL_PROGRAM} xb_check $(BINDIR)/xb_check
! 	${BSD_INSTALL_PROGRAM} random_effect $(BINDIR)/random_effect
  
  strip: exe
  	strip xbanner freetemp xb_check random_effect