From 2c3bd39f718629612d8b41d0184fa4c1beaef8d3 Mon Sep 17 00:00:00 2001 From: Olaf Barthel Date: Thu, 3 Mar 2005 15:12:18 +0000 Subject: [PATCH] - Added a very simple test program, just to see how much of the library it will pull in when linked. git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14856 87f5fb63-7c3d-0410-a384-fd976d0f7a62 --- test_programs/GNUmakefile.68k | 12 ++++++++---- test_programs/GNUmakefile.os4 | 10 +++++++--- test_programs/simple.c | 13 +++++++++++++ test_programs/smakefile | 14 +++++++++++--- test_programs/uname.c | 8 ++++++++ 5 files changed, 47 insertions(+), 10 deletions(-) create mode 100644 test_programs/simple.c diff --git a/test_programs/GNUmakefile.68k b/test_programs/GNUmakefile.68k index e8c3556..c4a37ca 100644 --- a/test_programs/GNUmakefile.68k +++ b/test_programs/GNUmakefile.68k @@ -1,5 +1,5 @@ # -# $Id: GNUmakefile.68k,v 1.4 2005-03-03 15:02:24 obarthel Exp $ +# $Id: GNUmakefile.68k,v 1.5 2005-03-03 15:12:18 obarthel Exp $ # # :ts=8 # @@ -47,11 +47,11 @@ LIBS = -lm -lc -lgcc ############################################################################## all: test fgets_test iotest sscanf_test printf_test sprintf_test stack_size_test \ - translate_test strtok_test uname + translate_test strtok_test uname simple clean: $(DELETE) #?.o #?.map test fgets_test iotest sscanf_test printf_test sprintf_test \ - stack_size_test translate_test strtok_test uname + stack_size_test translate_test strtok_test uname simple ############################################################################## @@ -91,10 +91,14 @@ translate_test : translate_test.o @echo "Linking $@" $(CC) $(CFLAGS) -o $@ translate_test.o -lunix $(LIBS) -Wl,--cref,-M,-Map=$@.map -uname: uname.o +uname : uname.o @echo "Linking $@" $(CC) $(CFLAGS) -o $@ uname.o -lunix $(LIBS) -Wl,--cref,-M,-Map=$@.map +simple : simple.o + @echo "Linking $@" + $(CC) $(CFLAGS) -o $@ simple.o $(LIBS) -Wl,--cref,-M,-Map=$@.map + ############################################################################## mkid: diff --git a/test_programs/GNUmakefile.os4 b/test_programs/GNUmakefile.os4 index 6a92ac4..ce74bbe 100644 --- a/test_programs/GNUmakefile.os4 +++ b/test_programs/GNUmakefile.os4 @@ -1,5 +1,5 @@ # -# $Id: GNUmakefile.os4,v 1.4 2005-03-03 15:02:25 obarthel Exp $ +# $Id: GNUmakefile.os4,v 1.5 2005-03-03 15:12:18 obarthel Exp $ # # :ts=8 # @@ -39,11 +39,11 @@ LIBS = -lm -lc ############################################################################## all: test fgets_test iotest sscanf_test printf_test sprintf_test stack_size_test \ - translate_test strtok_test uname + translate_test strtok_test uname simple clean: $(DELETE) *.o *.map test fgets_test iotest sscanf_test printf_test sprintf_test \ - stack_size_test translate_test strtok_test uname + stack_size_test translate_test strtok_test uname simple ############################################################################## @@ -86,3 +86,7 @@ translate_test : translate_test.o uname : uname.o @echo "Linking $@" $(CC) $(CFLAGS) -o $@ uname.o -lunix $(LIBS) -Wl,--cref,-M,-Map=$@.map + +simple : simple.o + @echo "Linking $@" + $(CC) $(CFLAGS) -o $@ simple.o $(LIBS) -Wl,--cref,-M,-Map=$@.map diff --git a/test_programs/simple.c b/test_programs/simple.c new file mode 100644 index 0000000..4b38c53 --- /dev/null +++ b/test_programs/simple.c @@ -0,0 +1,13 @@ +/* + * $Id: simple.c,v 1.1 2005-03-03 15:12:18 obarthel Exp $ + * + * :ts=4 + */ + +/****************************************************************************/ + +int +main(int argc,char ** argv) +{ + return(0); +} diff --git a/test_programs/smakefile b/test_programs/smakefile index fcdd191..08407d8 100644 --- a/test_programs/smakefile +++ b/test_programs/smakefile @@ -1,5 +1,5 @@ # -# $Id: smakefile,v 1.4 2005-03-03 15:02:26 obarthel Exp $ +# $Id: smakefile,v 1.5 2005-03-03 15:12:18 obarthel Exp $ # # :ts=8 # @@ -63,10 +63,13 @@ AFLAGS = \ ############################################################################## -all: setup test fgets_test iotest sscanf_test printf_test sprintf_test stack_size_test translate_test strtok_test uname cleanup +all: \ + setup \ + test fgets_test iotest sscanf_test printf_test sprintf_test stack_size_test translate_test strtok_test uname simple \ + cleanup clean: - -delete \#?.o \#?.map test fgets_test iotest sscanf_test printf_test sprintf_test stack_size_test translate_test strtok_test uname + -delete \#?.o \#?.map test fgets_test iotest sscanf_test printf_test sprintf_test stack_size_test translate_test strtok_test uname simple ############################################################################## @@ -130,6 +133,11 @@ uname: uname.o @slink $(LIB)startup.o uname.o to $@ lib $(LIB)c.lib addsym \ map $@.map,fhx fwidth 32 pwidth 32 swidth 32 +simple: simple.o + @echo "Linking $@" + @slink $(LIB)startup.o simple.o to $@ lib $(LIB)c.lib addsym \ + map $@.map,fhx fwidth 32 pwidth 32 swidth 32 + ############################################################################## mkid: diff --git a/test_programs/uname.c b/test_programs/uname.c index f49269b..2b72438 100644 --- a/test_programs/uname.c +++ b/test_programs/uname.c @@ -1,3 +1,11 @@ +/* + * $Id: uname.c,v 1.2 2005-03-03 15:12:18 obarthel Exp $ + * + * :ts=4 + */ + +/****************************************************************************/ + #include #include #include