~ubuntu-branches/ubuntu/vivid/xzip/vivid

« back to all changes in this revision

Viewing changes to .pc/respect_cflags_env/Makefile

  • Committer: Package Import Robot
  • Author(s): Daniel Schepler
  • Date: 2014-06-21 11:00:24 UTC
  • Revision ID: package-import@ubuntu.com-20140621110024-im9l34qkclso96rl
Tags: 1:1.8.2-4
* Incorporate upload from mentors.debian.net, thanks David Gilman.
  + Non-maintainer upload.
  + Bump debhelper compat
  + Add Homepage: field
  + Bump Standards-Version to 3.9.5
  + Add watchfile
  + Change to 3.0 (quilt) format
  + Add remove_conflicting_function_names patch to compile under c99
  + Add remove_test_target patch to remove long-broken test target
  + Add fix_manpage patch (closes LP: #1076095)
  + Add enable_hardening patch to switch to dpkg-buildflags
* Replace remove_test_target patch with empty override_dh_auto_test.
* Replace enable_hardening patch with respect_cflags_env patch so
  debhelper's dh_auto_build can set the variables.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
PROGRAM = xzip
 
2
 
 
3
# You MUST define either BIG_END_MODE or LITTLE_END_MODE, by
 
4
#   uncommenting one of the lines below. If you don't know
 
5
#   which is right, try one and see if the program runs right.
 
6
#   The error messages are nice and obvious. Some Unixes
 
7
#   have a BYTE_ORDER definition; if you define AUTO_END_MODE,
 
8
#   the source code will check for that and work "automatically".
 
9
#   If Murphy's Law strikes, go back to BIG_END_MODE or 
 
10
#   LITTLE_END_MODE.
 
11
 
 
12
# If you get errors in xio.c about fd_set or FD_SET being 
 
13
#   undefined, put "-DNEEDS_SELECT_H" in the SYSTEMFLAGS line,
 
14
#   as has been done for the RS6000.
 
15
 
 
16
# If you get errors about bcopy being undefined, put
 
17
#   "-DNO_BCOPY" in the SYSTEMFLAGS line.
 
18
 
 
19
# If you get errors about random or srandom being undefined,
 
20
#   put "-DLOUSY_RANDOM" in the SYSTEMFLAGS line.
 
21
 
 
22
# --------------------
 
23
 
 
24
# definitions for RS6000 / AIX
 
25
#   If AUTO doesn't work, use BIG
 
26
#SYSTEMFLAGS = -DNEEDS_SELECT_H -DAUTO_END_MODE
 
27
 
 
28
# definitions for HP / HPUX
 
29
#SYSTEMFLAGS = -Ae -DBIG_END_MODE
 
30
 
 
31
# definitions for HP / HPUX 9.0 
 
32
#    (Dunno; this was contributed to me)
 
33
#SYSTEMFLAGS = -Aa -D_HPUX_SOURCE -DBIG_END_MODE
 
34
 
 
35
# definitions for SparcStation / SunOS
 
36
#SYSTEMFLAGS = -DBIG_END_MODE
 
37
 
 
38
# definitions for SparcStation / Solaris 
 
39
#    (Solaris 2.5, don't know about other versions)
 
40
#SYSTEMFLAGS = -DBIG_END_MODE
 
41
#SYSTEMLIBS = -R$(XLIB)  -lsocket
 
42
 
 
43
# definitions for DECstation / Ultrix
 
44
#SYSTEMFLAGS = -DLITTLE_END_MODE
 
45
 
 
46
# definitions for SGI / Irix
 
47
#SYSTEMFLAGS = -DBIG_END_MODE
 
48
 
 
49
# definitions for Linux
 
50
# Note! Old versions of Linux (pre 2.0?) may not have the magic
 
51
#   BYTE_ORDER definitions installed. If AUTO_END_MODE doesn't
 
52
#   work, use LITTLE_END_MODE on an x86, BIG_END_MODE on a
 
53
#   680x0 or PPC machine.
 
54
SYSTEMFLAGS = -DAUTO_END_MODE
 
55
 
 
56
# definitions for BSDI 4
 
57
#SYSTEMFLAGS = -DAUTO_END_MODE
 
58
 
 
59
# definitions for some arbitrary big-endian system
 
60
#SYSTEMFLAGS = -DBIG_END_MODE
 
61
 
 
62
# definitions for some arbitrary little-endian system
 
63
#SYSTEMFLAGS = -DLITTLE_END_MODE
 
64
 
 
65
# --------------------
 
66
 
 
67
# definitions for where the X lib and include directories are.
 
68
# The following are defaults that might work.
 
69
 
 
70
#XINCLUDE = /usr/include/X11
 
71
#XLIB = /usr/lib/X11
 
72
 
 
73
# If your compiler can't find these things, try commenting out the
 
74
# above, and uncommenting various versions below. Also look around
 
75
# your hard drive for the appropriate files. (The XINCLUDE directory
 
76
# should contain the file "Xlib.h", and the XLIB dir should contain 
 
77
# "libX11.so" or "libX11.a".)
 
78
# The problem is, depending on how things are installed, the
 
79
# directories could be just about anywhere. Sigh.
 
80
 
 
81
# for Debian or SuSE Linux
 
82
XINCLUDE = /usr/X11R6/include/X11
 
83
XLIB = /usr/X11R6/lib
 
84
 
 
85
# for Red Hat Linux
 
86
#XINCLUDE = /usr/include/X11
 
87
#XLIB = /usr/X11/lib
 
88
 
 
89
# for SparcStation / Solaris 
 
90
#XINCLUDE = /usr/openwin/include
 
91
#XLIB = /usr/openwin/lib
 
92
 
 
93
# for BSDI 4
 
94
#XINCLUDE = /usr/X11R6/include
 
95
#XLIB = /usr/X11/lib
 
96
 
 
97
# --------------------
 
98
 
 
99
# definition for where to install xzip executable and man page
 
100
BINDIR = /usr/games
 
101
MANDIR = /usr/share/man
 
102
 
 
103
# --------------------
 
104
 
 
105
CFLAGS = -O
 
106
LDFLAGS =
 
107
LIBS = -L$(XLIB) -lX11 $(SYSTEMLIBS)
 
108
 
 
109
# definitions for the default fonts. Users can override these with X resources.
 
110
FONTDEF_PLAIN=\
 
111
"-adobe-times-medium-r-normal--14-*-*-*-*-*-iso8859-1"
 
112
FONTDEF_BOLD=\
 
113
"-adobe-times-bold-r-normal--14-*-*-*-*-*-iso8859-1"
 
114
FONTDEF_ITALIC=\
 
115
"-adobe-times-medium-i-normal--14-*-*-*-*-*-iso8859-1"
 
116
FONTDEF_BOLDITALIC=\
 
117
"-adobe-times-bold-i-normal--14-*-*-*-*-*-iso8859-1"
 
118
FONTDEF_FIXED=\
 
119
"-adobe-courier-medium-r-normal--12-*-*-*-*-*-iso8859-1"
 
120
FONTDEF_BOLDFIXED=\
 
121
"-adobe-courier-bold-r-normal--12-*-*-*-*-*-iso8859-1"
 
122
FONTDEF_ITALICFIXED=\
 
123
"-adobe-courier-medium-o-normal--12-*-*-*-*-*-iso8859-1"
 
124
FONTDEF_BOLDITALICFIXED=\
 
125
"-adobe-courier-bold-o-normal--12-*-*-*-*-*-iso8859-1"
 
126
 
 
127
FONTDEFAULTLIST = \
 
128
-DFND0='$(FONTDEF_PLAIN)' \
 
129
-DFND1='$(FONTDEF_BOLD)' \
 
130
-DFND2='$(FONTDEF_ITALIC)' \
 
131
-DFND3='$(FONTDEF_BOLDITALIC)' \
 
132
-DFND4='$(FONTDEF_FIXED)' \
 
133
-DFND5='$(FONTDEF_BOLDFIXED)' \
 
134
-DFND6='$(FONTDEF_ITALICFIXED)' \
 
135
-DFND7='$(FONTDEF_BOLDITALICFIXED)'
 
136
 
 
137
INC = ztypes.h
 
138
OBJS = zip.o control.o extern.o fileio.o input.o interpre.o math.o memory.o \
 
139
        object.o operand.o osdepend.o property.o screen.o text.o variable.o \
 
140
        pickle.o quetzal.o
 
141
 
 
142
XOBJS = xio.o xinit.o xtext.o xkey.o xmess.o xstat.o
 
143
 
 
144
$(PROGRAM) : $(OBJS) $(XOBJS)
 
145
        $(CC) -o $@ $(LDFLAGS) $(OBJS) $(XOBJS) $(LIBS)
 
146
 
 
147
test: $(XOBJS)
 
148
        $(CC) -o $@ $(LDFLAGS) $(XOBJS) $(LIBS)
 
149
 
 
150
$(OBJS) : $(INC) extern.c version.h
 
151
 
 
152
.c.o:
 
153
        $(CC) $(CFLAGS) $(SYSTEMFLAGS) -I$(XINCLUDE) -c $<
 
154
 
 
155
pickle.o : pickle.h
 
156
 
 
157
$(XOBJS) : $(INC) xio.h version.h
 
158
 
 
159
xio.o: xio.c xio.h greypm.bm
 
160
        $(CC) $(CFLAGS) $(SYSTEMFLAGS) -I$(XINCLUDE) -c xio.c
 
161
 
 
162
xinit.o: xinit.c xio.h
 
163
        $(CC) $(CFLAGS) $(SYSTEMFLAGS) -I$(XINCLUDE) $(FONTDEFAULTLIST) -c xinit.c
 
164
 
 
165
install: $(PROGRAM)
 
166
        install $(PROGRAM) $(DESTDIR)/$(BINDIR)
 
167
        install $(PROGRAM).1 $(DESTDIR)/$(MANDIR)/man6/$(PROGRAM).6
 
168
 
 
169
clean :
 
170
        -rm -f *~ *.o $(PROGRAM) test