TOPDIR=../../
-include $(TOPDIR)Rules.make
+include $(TOPDIR)Rules.mak
# Check if 'ls -sh' works or not
LSFLAGS = $(shell if ls -sh >/dev/null 2>&1; \
-@ echo " "
$(CC) $(XCFLAGS) -c $< -o $@.o
$(CC) $(XLDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
+ -@ echo "This is supposed to core dump on test #3"
-./$@
-@ echo " "
-@ echo " "
$(CC) $(YCFLAGS) -c $< -o $@.o
$(CC) $(YLDFLAGS) --static $@.o -o $@
+ -@ echo "This is supposed to core dump on test #3"
-./$@
-@ echo " "
TOPDIR=../../
-include $(TOPDIR)Rules.make
+include $(TOPDIR)Rules.mak
# Check if 'ls -sh' works or not
LSFLAGS = $(shell if ls -sh >/dev/null 2>&1; \
string.o
string_glibc
string_glibc.o
+testcopy.out
+testcopy.gnu.out
-@ echo " "
$(CC) $(XCFLAGS) -c $< -o $@.o
$(CC) $(XLDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
- -./$@
+ -./$@ > testcopy.out
-@ echo " "
testcopy_glibc: testcopy.c Makefile $(TOPDIR)libc.a
-@ echo " "
$(CC) $(YCFLAGS) -c $< -o $@.o
$(CC) $(YLDFLAGS) --static $@.o -o $@
- -./$@
+ -./$@ > testcopy.gnu.out
+ -@ echo " "
+
+testcopy_diff: testcopy testcopy_glibc
+ -@ echo "-------"
+ -@ echo " "
+ -@ echo "Diffing output: "
-@ echo " "
+ -diff -u testcopy.gnu.out testcopy.out
+ -@ echo " "
+
clean:
rm -f *.[oa] *~ core $(TARGETS)