don't install make-mac-package.sh
[arla.git] / tests / Makefile.in
blob07b33ee405634e5ea7111b3e0ea8f146559205e1
1 # $Id$
3 srcdir = @srcdir@
4 top_builddir = ..
5 VPATH = @srcdir@
7 SHELL = /bin/sh
9 CC = @CC@
10 CFLAGS = @CFLAGS@
11 REALCFLAGS = -I$(srcdir)/.. -I../include -I$(srcdir)/../include \
12 @KRB5_INC_FLAGS@ \
13 $(CFLAGS) -I../rxdef -I$(srcdir)/../appl/lib @INC_roken@
14 CPPFLAGS = @CPPFLAGS@
15 DEFS = @DEFS@
16 LDFLAGS = @LDFLAGS@
17 LIBS = @LIBS@
18 ROKEN_LIBS = @LIB_roken@
19 KAFS_LIBS = @AFS_EXTRA_LIBS@ @KAFS_LIBS@
20 KRB_LIBS = @KRB5_LIB_FLAGS@
21 APPL_LIB = -L../appl/lib -larlalib \
22 ../lib/ko/libko.la ../util/libarlautil.la
25 prefix = @prefix@
26 exec_prefix = @exec_prefix@
27 bindir = @bindir@
29 TEST_PROGRAMS = write-ro-file hello-world read-vs-mmap read-vs-mmap2 \
30 mmap-and-read large-dir large-dir2 large-dir3 mountpoint \
31 test-setgroups test-setpag hardlink1 hardlink2 mkdir2 \
32 create-files create-symlinks create-dirs dup2-and-unlog \
33 readdir-vs-lstat read-write ga-test create-remove \
34 symlink echo-n test-parallel1 test-parallel2 create-stat \
35 kill-softly kill-softer rm-rf apwd exit-wo-close \
36 mmap-vs-read mmap-vs-read2 strange-characters-c pine \
37 append-over-page write-ucc utime-dir mmap-shared-write \
38 rename5 rename-under-feet write-closed write-closed2 \
39 truncate fchmod fhbench make-page utime-file \
40 invalidate-file write3 still-there-p \
41 intr-read asu truncate-files mmap-cat blocks-new-file \
42 read-past-eof \
43 write-6G-file \
44 mmap-and-fork \
45 write-error
47 TEST_OBJS = write-ro-file.o read-vs-mmap.o read-vs-mmap2.o \
48 mmap-and-read.o large-dir.o large-dir2.o large-dir3.o \
49 test-setgroups.o test-setpag.o hardlink1.o hardlink2.o \
50 mkdir2.o create-files.o create-symlinks.o create-dirs.o \
51 dup2-and-unlog.o readdir-vs-lstat.o read-write.o ga-test.o \
52 create-remove.o symlink.o echo-n.o test-parallel1.o \
53 test-parallel1.o \
54 create-stat.o kill-softly.o kill-softer.o rm-rf.o apwd.o \
55 exit-wo-close.o mmap-vs-read.o mmap-vs-read2.o \
56 strange-characters-c.o pine.o append-over-page.o \
57 write-ucc.o utime-dir.o mmap-shared-write.o rename5.o \
58 rename-under-feet.o write-closed.o write-closed2.o \
59 truncate.o fchmod.o fhbench.o make-page.o utime-file.o \
60 invalidate-file.o write3.o still-there-p.o \
61 intr-read.o asu.o truncate-files.o mmap-cat.o \
62 blocks-new-file.o \
63 read-past-eof.o \
64 write-6G-file.o \
65 mmap-and-fork.o \
66 write-error
69 TEST_SRCS = write-ro-file.c read-vs-mmap.c read-vs-mmap2.c \
70 mmap-and-read.c large-dir.c large-dir2.c large-dir3.c \
71 test-setgroups.c test-setpag.c hardlink1.c hardlink2.c \
72 mkdir2.c create-files.c create-symlinks.c create-dirs.c \
73 dup2-and-unlog.c readdir-vs-lstat.c read-write.c ga-test.c \
74 create-remove.c symlink.c echo-n.c test-parallel1.c \
75 test-parallel2.c \ \
76 create-stat.c kill-softly.c kill-softer.c rm-rf.c apwd.c \
77 exit-wo-close.c mmap-vs-read.c mmap-vs-read2.c \
78 strange-characters-c.c pine.c append-over-page.c \
79 write-ucc.c utime-dir.c mmap-shared-write.c rename5.c \
80 rename-under-feet.c write-closed.c write-closed2.c \
81 truncate.c fchmod.c fhbench.c make-page.c utime-file.c \
82 invalidate-file.c write3.c still-there-p.c \
83 intr-read.c asu.c truncate-files.c mmap-cat.c \
84 blocks-new-file.c \
85 read-past-eof.c \
86 write-6G-file.c \
87 mmap-and-fork.c \
88 write-error
90 all: run-tests $(TEST_PROGRAMS)
92 run-tests: run-tests.in
93 (cd ..; CONFIG_FILES=tests/run-tests CONFIG_HEADERS= $(SHELL) config.status)
94 @chmod +x run-tests
96 write-ro-file: write-ro-file.o
97 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ write-ro-file.o $(ROKEN_LIBS) $(LIBS)
99 write-error: write-error.o
100 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ write-error.o $(ROKEN_LIBS) $(LIBS)
102 read-vs-mmap: read-vs-mmap.o
103 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ read-vs-mmap.o $(ROKEN_LIBS) $(LIBS)
105 read-vs-mmap2: read-vs-mmap2.o
106 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ read-vs-mmap2.o $(ROKEN_LIBS) $(LIBS)
108 mmap-vs-read: mmap-vs-read.o
109 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ mmap-vs-read.o $(ROKEN_LIBS) $(LIBS)
111 mmap-vs-read2: mmap-vs-read2.o
112 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ mmap-vs-read2.o $(ROKEN_LIBS) $(LIBS)
114 mmap-and-fork: mmap-and-fork.o
115 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ mmap-and-fork.o $(ROKEN_LIBS) $(LIBS)
117 read-write: read-write.o
118 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ read-write.o $(ROKEN_LIBS) $(LIBS)
120 mmap-and-read: mmap-and-read.o
121 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ mmap-and-read.o $(ROKEN_LIBS) $(LIBS)
123 large-dir: large-dir.o
124 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ large-dir.o $(ROKEN_LIBS) $(LIBS)
126 large-dir2: large-dir2.o
127 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ large-dir2.o $(ROKEN_LIBS) $(LIBS)
129 large-dir3: large-dir3.o
130 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ large-dir3.o $(ROKEN_LIBS) $(LIBS)
132 fchmod: fchmod.o
133 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ fchmod.o $(ROKEN_LIBS) $(LIBS)
135 read-past-eof: read-past-eof.o
136 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ read-past-eof.o $(ROKEN_LIBS) $(LIBS)
138 write-6G-file: write-6G-file.o
139 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ write-6G-file.o $(ROKEN_LIBS) $(LIBS)
141 truncate: truncate.o
142 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ truncate.o $(ROKEN_LIBS) $(LIBS)
144 make-page: make-page.o
145 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ make-page.o $(ROKEN_LIBS) $(LIBS)
147 still-there-p: still-there-p.o
148 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ still-there-p.o $(ROKEN_LIBS) $(LIBS)
150 intr-read: intr-read.o
151 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ intr-read.o $(ROKEN_LIBS) $(LIBS)
153 blocks-new-file: blocks-new-file.o
154 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ blocks-new-file.o $(ROKEN_LIBS) $(LIBS)
156 ga-test: ga-test.o
157 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ ga-test.o $(APPL_LIB) $(ROKEN_LIBS) $(LIBS)
159 asu: asu.o
160 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ asu.o $(ROKEN_LIBS) $(KAFS_LIBS) $(KRB_LIBS) $(LIBS)
162 test-setgroups: test-setgroups.o
163 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ test-setgroups.o $(ROKEN_LIBS) $(KAFS_LIBS) $(KRB_LIBS) $(LIBS)
165 test-setpag: test-setpag.o
166 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ test-setpag.o $(ROKEN_LIBS) $(KAFS_LIBS) $(KRB_LIBS) $(LIBS)
168 hardlink1: hardlink1.o
169 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ hardlink1.o $(ROKEN_LIBS) $(KAFS_LIBS) $(KRB_LIBS) $(LIBS)
171 hardlink2: hardlink2.o
172 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ hardlink2.o $(ROKEN_LIBS) $(KAFS_LIBS) $(KRB_LIBS) $(LIBS)
174 mkdir2: mkdir2.o
175 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ mkdir2.o $(ROKEN_LIBS) $(KAFS_LIBS) $(KRB_LIBS) $(LIBS)
177 create-files: create-files.o
178 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ create-files.o $(ROKEN_LIBS) $(KAFS_LIBS) $(KRB_LIBS) $(LIBS)
180 create-symlinks: create-symlinks.o
181 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ create-symlinks.o $(ROKEN_LIBS) $(KAFS_LIBS) $(KRB_LIBS) $(LIBS)
183 create-dirs: create-dirs.o
184 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ create-dirs.o $(ROKEN_LIBS) $(KAFS_LIBS) $(KRB_LIBS) $(LIBS)
186 create-remove: create-remove.o
187 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ create-remove.o $(ROKEN_LIBS) $(KAFS_LIBS) $(KRB_LIBS) $(LIBS)
190 dup2-and-unlog: dup2-and-unlog.o
191 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ dup2-and-unlog.o $(ROKEN_LIBS) $(KAFS_LIBS) $(KRB_LIBS) $(LIBS)
193 readdir-vs-lstat: readdir-vs-lstat.o
194 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ readdir-vs-lstat.o $(ROKEN_LIBS) $(KAFS_LIBS) $(KRB_LIBS) $(LIBS)
196 symlink: symlink.o
197 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ symlink.o $(ROKEN_LIBS) $(KAFS_LIBS) $(KRB_LIBS) $(LIBS)
199 echo-n: echo-n.o
200 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ echo-n.o
202 test-parallel1: test-parallel1.o
203 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ test-parallel1.o $(ROKEN_LIBS) $(LIBS)
205 test-parallel2: test-parallel2.o
206 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ test-parallel2.o $(ROKEN_LIBS) $(LIBS)
208 create-stat: create-stat.o
209 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ create-stat.o $(APPL_LIB) $(ROKEN_LIBS) $(KAFS_LIBS) $(KRB_LIBS) $(LIBS)
211 kill-softly: kill-softly.o
212 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ kill-softly.o $(APPL_LIB) $(ROKEN_LIBS) $(KAFS_LIBS) $(KRB_LIBS) $(LIBS)
214 kill-softer: kill-softer.o
215 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ kill-softer.o $(APPL_LIB) $(ROKEN_LIBS) $(KAFS_LIBS) $(KRB_LIBS) $(LIBS)
217 rm-rf: rm-rf.o
218 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ rm-rf.o $(APPL_LIB) $(ROKEN_LIBS) $(KAFS_LIBS) $(KRB_LIBS) $(LIBS)
220 apwd: apwd.o
221 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ apwd.o $(APPL_LIB) $(ROKEN_LIBS) $(KAFS_LIBS) $(KRB_LIBS) $(LIBS)
223 invalidate-file: invalidate-file.o
224 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ invalidate-file.o $(APPL_LIB) $(ROKEN_LIBS) $(KAFS_LIBS) $(KRB_LIBS) $(LIBS)
226 exit-wo-close: exit-wo-close.o
227 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ exit-wo-close.o $(APPL_LIB) $(ROKEN_LIBS) $(KAFS_LIBS) $(KRB_LIBS) $(LIBS)
229 strange-characters-c: strange-characters-c.o
230 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ strange-characters-c.o $(ROKEN_LIBS) $(KRB_LIBS) $(LIBS)
232 pine: pine.o
233 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ pine.o $(ROKEN_LIBS) $(KRB_LIBS) $(LIBS)
235 append-over-page: append-over-page.o
236 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ append-over-page.o $(ROKEN_LIBS) $(KRB_LIBS) $(LIBS)
238 write-ucc: write-ucc.o
239 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ write-ucc.o $(ROKEN_LIBS) $(KRB_LIBS) $(LIBS)
241 utime-dir: utime-dir.o
242 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ utime-dir.o $(ROKEN_LIBS) $(KRB_LIBS) $(LIBS)
244 utime-file: utime-file.o
245 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ utime-file.o $(ROKEN_LIBS) $(LIBS)
247 mmap-shared-write: mmap-shared-write.o
248 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ mmap-shared-write.o $(ROKEN_LIBS) $(KRB_LIBS) $(LIBS)
250 rename5: rename5.o
251 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ rename5.o $(ROKEN_LIBS) $(KRB_LIBS) $(LIBS)
253 write3: write3.o
254 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ write3.o $(ROKEN_LIBS) $(LIBS)
256 rename-under-feet: rename-under-feet.o
257 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ rename-under-feet.o $(ROKEN_LIBS) $(KRB_LIBS) $(LIBS)
259 write-closed: write-closed.o
260 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ write-closed.o $(ROKEN_LIBS) $(KRB_LIBS) $(LIBS)
262 write-closed2: write-closed2.o
263 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ write-closed2.o $(ROKEN_LIBS) $(KAFS_LIBS) $(KRB_LIBS) $(LIBS)
265 fhbench: fhbench.o
266 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ fhbench.o $(APPL_LIB) $(ROKEN_LIBS) $(KAFS_LIBS) $(KRB_LIBS) $(LIBS)
268 truncate-files: truncate-files.o
269 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ truncate-files.o $(APPL_LIB) $(ROKEN_LIBS) $(KAFS_LIBS) $(KRB_LIBS) $(LIBS)
271 mmap-cat: mmap-cat.o
272 $(top_builddir)/libtool --mode=link $(CC) $(LDFLAGS) -o $@ mmap-cat.o $(APPL_LIB) $(ROKEN_LIBS) $(KAFS_LIBS) $(KRB_LIBS) $(LIBS)
274 .c.o:
275 $(top_builddir)/libtool --mode=compile $(CC) -c $(CPPFLAGS) $(DEFS) -I$(srcdir) -I. $(REALCFLAGS) $<
277 hello-world: hello-world.in
278 sed -e "s!%CC%!$(CC)!" $(srcdir)/hello-world.in > $@
279 chmod +x hello-world
281 mountpoint: mountpoint.in
282 sed -e "s!%bindir%!$(bindir)!" $(srcdir)/mountpoint.in > $@
283 chmod +x mountpoint
285 clean:
286 rm -f run-tests $(TEST_PROGRAMS) *.o *~
288 realclean:
290 distclean: clean
291 rm -f Makefile
293 mostlyclean:
295 install:
297 uninstall:
300 TAGS: $(TEST_SRCS)
301 etags $(TEST_SRCS)
303 check: run-tests $(TEST_PROGRAMS)
304 ./run-tests -all
306 check-fast: run-tests $(TEST_PROGRAMS)
307 ./run-tests -all -fast
309 Makefile: Makefile.in ../config.status
310 cd ..; CONFIG_FILES=tests/Makefile CONFIG_HEADERS= $(SHELL) config.status
312 .PHONY: all install clean realclean distclean mostlyclean install uninstall check