File: Makefile.in

package info (click to toggle)
zlibc 0.9k-4.3
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 624 kB
  • ctags: 461
  • sloc: sh: 3,195; ansic: 3,077; csh: 128; makefile: 60; sed: 4
file content (232 lines) | stat: -rw-r--r-- 5,440 bytes parent folder | download | duplicates (5)
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
#
#       Makefile for Zlibc
#
# do not edit below this line
# =============================================================================


SHELL = /bin/sh

top_srcdir=@top_srcdir@
srcdir=@srcdir@
VPATH=@srcdir@

prefix      = @prefix@
exec_prefix = @exec_prefix@
bindir      = @bindir@
infodir     = @infodir@
mandir      = @mandir@
libdir      = @prefix@/lib

CC       = @CC@
CPPFLAGS = @CPPFLAGS@
DEFS     = @DEFS@
HOST_ID  = @HOST_ID@
LDFLAGS  = @LDFLAGS@
LIBS     = @LIBS@
SHLIB    = @SHLIB@
DEFS     = @DEFS@ -DSYSCONFDIR=\"@sysconfdir@\" $(HOST_ID)
SHAREDCFLAGS = -nostdlib -shared
LN_S     = @LN_S@

INSTALL         = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA    = @INSTALL_DATA@
INSTALL_INFO	= @INSTALL_INFO@

MAKEINFO = makeinfo
TEXI2DVI = texi2dvi
TEXI2HTML = texi2html

version=0.9k

AIXLDFLAGS = -L. -bI:./syscall.exp  -bnodelcsect -bnso -bI:/lib/syscalls.exp

OBJECTS= open.o altnames.o access.o stat.o \
	readdir.o readlink.o \
	unlink.o rename.o \
	chmod.o chown.o link.o \
	symlink.o utime.o \
	filetype.o zlibc.conf.o \
	parseconfig.o strsep.o \
	getxattr.o lgetxattr.o \
	setxattr.o lsetxattr.o \
	listxattr.o llistxattr.o \
	removexattr.o lremovexattr.o

CO_OBJECTS= compile_config.o printconfig.o strsep.o

CFLAGS	  =@CFLAGS@ $(DEFS) -I. -I@srcdir@ -fpic

MAN3=zlibc.3
MAN5=zlibc.conf.5


MAN1EXT	= 1
MAN1DIR	= $(mandir)/man${MAN1EXT}
MAN3EXT	= 3
MAN3DIR	= $(mandir)/man${MAN3EXT}
MAN5EXT	= 5
MAN5DIR	= $(mandir)/man${MAN5EXT}

all: uncompress.so

zlibc.3 zlibc.conf.5: zlibc.texi
	$(top_srcdir)/mkmanpages

man: zlibc.3 zlibc.conf.5


$(OBJECTS) printconfig.o compile_config.o: \
	zlibc.h config.h sysincludes.h params.h direct_sys.h

stat.o: \
	stat_tmpl.c stat.c

readdir.o: \
	readdir.c readdir_tmpl.c

%.o: %.c zlibc.h config.h sysincludes.h params.h
	$(CC) $(CFLAGS) -c $<

compile_config: $(CO_OBJECTS)
	$(CC) $(CFLAGS) -s -o $@ $(CO_OBJECTS)

%.c: %.sample compile_config
	./compile_config $< >$@

uncompress.so: $(OBJECTS) 
	$(CC) -o $@ $(CFLAGS) $(SHAREDCFLAGS) $(OBJECTS) $(LIBS) -lc

aix-uncompress.so: $(OBJECTS) aix-syscall.shr.o
	$(CC) -o $@ $(CFLAGS) $(SHAREDCFLAGS) $(OBJECTS) -lc $(AIXLDFAGS)

%.exp: %.tmpl
	echo "#!`pwd`/aix-syscall.shr.o" > $@
	cat $<  >>$@

%.shr.o: %.o aix-syscall.exp
	ld -o $@ -bM:SRE -T512 -bE:aix-syscall.exp -bI:/lib/syscalls.exp -bnodelcsect $<

mostlyclean:
	rm -f *. *~ image2 libimage jump_map \
	subst_map image setaddress inject set_datastart library \
	testfile zlibc.conf.c \
	compile_config config.c libtype libstart libstart2 $(OBJECTS)

clean: mostlyclean
	rm -f 	uncompress.so  \
	zlibc.so zlibc.dvi *.html *.info*

texclean:
	-rm zlibc.aux zlibc.toc zlibc.log
	-rm zlibc.cps zlibc.pgs zlibc.vrs

$(OBJECTS): zlibc.h config.h

info: zlibc.info
%.info: %.texi
	$(MAKEINFO) -I$(srcdir) $< --no-split --output=$@

dvi: zlibc.dvi
%.dvi: %.texi
	$(TEXI2DVI) $<


html: zlibc.html zlibc_toc.html
%.html %_toc.html: %.texi
	$(TEXI2HTML) $<

# Don't cd, to avoid breaking install-sh references.
install-info: info
	$(top_srcdir)/mkinstalldirs $(infodir)
	if test -f zlibc.info; then \
	  for i in zlibc.info*; do \
	    $(INSTALL_DATA) $$i $(infodir)/$$i; \
	  done; \
	else \
	  for i in $(srcdir)/zlibc.info*; do \
	    $(INSTALL_DATA) $$i $(infodir)/`echo $$i | sed 's|^$(srcdir)/||'`; \
	  done; \
	fi; \
	if [ -n "$(INSTALL_INFO)" ] ; then \
		if [ -f $(infodir)/dir.info ] ; then \
			$(INSTALL_INFO) $(infodir)/zlibc.info $(infodir)/dir.info; \
		fi; \
		if [ -f $(infodir)/dir ] ; then \
			$(INSTALL_INFO) $(infodir)/zlibc.info $(infodir)/dir; \
		fi; \
	fi


uninstall-info:
	cd $(infodir) && rm -f zlibc.info*

install:	$(libdir)/uncompress.so install-man \
		install-info install-bin

uninstall:	uninstall-bin uninstall-man uninstall-links

distclean: clean
	rm -f config.cache config.h config.status config.log Makefile
maintainer-clean: distclean

$(libdir)/uncompress.so: uncompress.so
	rm $(libdir)/old-uncompress.so || true 2>/dev/null
	ln $(libdir)/uncompress.so $(libdir)/old-uncompress.so || true 2>/dev/null
	$(top_srcdir)/mkinstalldirs $(libdir)
	rm $(libdir)/uncompress-$(version).so || true 2>/dev/null
	$(INSTALL_PROGRAM) uncompress.so $(libdir)/uncompress-$(version).so
	ln -f $(libdir)/uncompress-$(version).so $(libdir)/uncompress.so
	chmod 4755 $(libdir)/uncompress-$(version).so

install-bin: $(libdir)/uncompress.so


install-man:
	@$(top_srcdir)/mkinstalldirs $(MAN1DIR)
	@for j in $(MAN1); do \
		$(INSTALL_DATA) $(srcdir)/$$j $(MAN1DIR)/$$j ; \
		echo $(MAN1DIR)/$$j ; \
	done
	@$(top_srcdir)/mkinstalldirs $(MAN3DIR)
	@for j in $(MAN3); do \
		$(INSTALL_DATA) $(srcdir)/$$j $(MAN3DIR)/$$j ; \
		echo $(MAN3DIR)/$$j ; \
	done
	@$(top_srcdir)/mkinstalldirs $(MAN5DIR)
	@for j in $(MAN5); do \
		$(INSTALL_DATA) $(srcdir)/$$j $(MAN5DIR)/$$j ; \
		echo $(MAN5DIR)/$$j ; \
	done

uninstall-man:
	@for j in $(MAN1); do \
		rm -f $(MAN1DIR)/$$j ; \
		echo $(MAN1DIR)/$$j ; \
	done
	@for j in $(MAN3); do \
		rm -f $(MAN3DIR)/$$j ; \
		echo $(MAN3DIR)/$$j ; \
	done
	@for j in $(MAN5); do \
		rm -f $(MAN5DIR)/$$j ; \
		echo $(MAN5DIR)/$$j ; \
	done

uninstall-links:
	@for j in $(LINKS); \
		do rm -f $(bindir)/$$j ; \
		echo $(bindir)/$$j ; \
	done

uninstall-lib:
	rm $(libdir)/uncompress.so $(libdir)/uncompress-$(version).so

depend: $(SRCS)
	makedepend -- $(CFLAGS) -- $^

check:
	echo No self tests included
# check target needed even if empty, in order to make life easyer for
# automatic tools to install GNU soft