3 # Copyright (C) 2000,2001 Erik Andersen <andersen@uclibc.org>
5 # This program is free software; you can redistribute it and/or modify it under
6 # the terms of the GNU Library General Public License as published by the Free
7 # Software Foundation; either version 2 of the License, or (at your option) any
10 # This program is distributed in the hope that it will be useful, but WITHOUT
11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 # FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more
15 # You should have received a copy of the GNU Library General Public License
16 # along with this program; if not, write to the Free Software Foundation, Inc.,
17 # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 CFLAGS64=-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
23 TARGETS=sem fdopen dirent_diff dirent64_diff #outb
26 outb: outb.c ../testsuite.h Makefile $(TESTDIR)/Rules.mak
29 -@ echo "Compiling $@ vs uClibc: "
31 $(CC) $(CFLAGS) -c $< -o $@.o
32 $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
33 $(STRIPTOOL) -x -R .note -R .comment $@
37 sem: sem.c Makefile $(TESTDIR)/Rules.mak
40 -@ echo "Compiling $@ vs uClibc: "
42 $(CC) $(CFLAGS) -c $< -o $@.o
43 $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
44 $(STRIPTOOL) -x -R .note -R .comment $@
48 fdopen: fdopen.c Makefile $(TESTDIR)/Rules.mak
51 -@ echo "Compiling $@ vs uClibc: "
53 $(CC) $(CFLAGS) -c $< -o $@.o
54 $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
55 $(STRIPTOOL) -x -R .note -R .comment $@
62 -@ echo "dirent.c source: "
67 dirent: dirent.c Makefile $(TESTDIR)/Rules.mak
70 -@ echo "Compiling $@ vs uClibc: "
72 $(CC) $(CFLAGS) -c $< -o $@.o
73 $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
74 $(STRIPTOOL) -x -R .note -R .comment $@
75 ./$@ dirent.c > $@.out
78 dirent_glibc: dirent.c Makefile
81 -@ echo "Compiling $@ vs glibc: "
83 $(HOSTCC) $(GLIBC_CFLAGS) -c $< -o $@.o
84 $(HOSTCC) $(GLIBC_LDFLAGS) $@.o -o $@
85 $(STRIPTOOL) -x -R .note -R .comment $@
86 ./$@ dirent.c > $@.out
89 dirent_diff: dirent dirent_glibc
92 -@ echo "Diffing dirent output: "
94 -diff -u dirent_glibc.out dirent.out
97 dirent64: dirent.c Makefile $(TESTDIR)/Rules.mak
100 -@ echo "Compiling $@ vs uClibc: "
102 $(CC) $(CFLAGS) $(CFLAGS64) -c $< -o $@.o
103 $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
104 $(STRIPTOOL) -x -R .note -R .comment $@
105 ./$@ dirent.c > $@.out
108 dirent64_glibc: dirent.c Makefile
111 -@ echo "Compiling $@ vs glibc: "
113 $(HOSTCC) $(GLIBC_CFLAGS) $(CFLAGS64) -c $< -o $@.o
114 $(HOSTCC) $(GLIBC_LDFLAGS) $@.o -o $@
115 $(STRIPTOOL) -x -R .note -R .comment $@
116 ./$@ dirent.c > $@.out
119 dirent64_diff: dirent64 dirent64_glibc
122 -@ echo "Diffing dirent64 output: "
124 -diff -u dirent64_glibc.out dirent64.out
128 $(RM) *.[oa] *~ core dirent dirent_glibc dirent_glibc.out dirent.out \
129 dirent64 dirent64_glibc dirent64_glibc.out dirent64.out \