diff -ruN virus-0.0.1/ChangeLog virus-0.0.2/ChangeLog --- virus-0.0.1/ChangeLog Thu Jan 1 01:00:00 1970 +++ virus-0.0.2/ChangeLog Thu Jul 18 14:53:36 2002 @@ -0,0 +1,2 @@ +virus-0.0.1 to virus-0.0.2 ( 2001/07/07 -- 2002/07/07 ) + make virus now works (makefile etc) diff -ruN virus-0.0.1/Makefile virus-0.0.2/Makefile --- virus-0.0.1/Makefile Thu Jan 1 01:00:00 1970 +++ virus-0.0.2/Makefile Thu Jul 18 16:29:58 2002 @@ -0,0 +1,54 @@ +# virus makefile - (C) 2001, 2002 Stefan Koerner +# +# Do unto this makefile as you like. +# + +#CFLAGS := "-Wall -O2" +#CFLAGS := "-Wall -Os" +#CFLAGS := "-Wall -O2 -fpic" +#CFLAGS := "-Wall -O2 -fexpensive-optimizations -fno-common -fverbose-asm" +#CFLAGS += "-static" +CFLAGS := "-Wall -pedantic -O2 -fexpensive-optimizations -fno-common -fverbose-asm -static" +CC := gcc $(CFLAGS) + +VIRUS_VERSION := "0.0.2" +VIRUS_MAKE_BANNER := "xx VI Resembling Utility Skeleton - Version $(VIRUS_VERSION)" +banner : + @echo -e $(VIRUS_MAKE_BANNER) + +# actual stuff doing the build: +#------------------------------ + +OBJECTS := virus.o +BINARY_LIST := vi virus + +# create a .o file for every .c file +%.o : %.c + gcc -c $< -o $@ + +virus : banner $(OBJECTS) + @echo xx creating main binary + $(CC) -o virus $(OBJECTS) + cp virus vi + +strip : banner virus $(OBJECTS) + @echo xx stripping binaries + strip virus + strip vi + +all: banner virus strip + @echo xx done creating all files + + +# cleanup stuff +.PHONY : clean +clean : banner + @echo xx cleaning up intermediate objects + rm -f $(OBJECTS) + +.PHONY : distclean +distclean : banner + @echo xx cleaning up + rm -f $(BINARY_LIST) + rm -f $(OBJECTS) + diff -ruN virus-0.0.1/README virus-0.0.2/README --- virus-0.0.1/README Mon Feb 11 06:05:06 2002 +++ virus-0.0.2/README Thu Jul 18 15:43:59 2002 @@ -1,3 +1,5 @@ -run ./mkvirus to create the binaries, +run make all to create stripped binaries. +run make virus to create fat binaries. +run make clean / distclean to clean the intermediate objects / all created files + run ./mkvirus-install to install them as root - don`t forget to edit the PATH, -run ./mkvirus-clean to clean up after the build. diff -ruN virus-0.0.1/mkvirus virus-0.0.2/mkvirus --- virus-0.0.1/mkvirus Mon Feb 11 05:55:44 2002 +++ virus-0.0.2/mkvirus Thu Jul 18 16:21:24 2002 @@ -4,7 +4,7 @@ ####################################### echo "gcc -Wall -Os -s -o vi virus.c" gcc -Wall -Os -s -o virus virus.c -echo "stripping debug informatin" +echo "stripping debug information" strip virus cp virus vi echo "done" diff -ruN virus-0.0.1/virus.c virus-0.0.2/virus.c --- virus-0.0.1/virus.c Mon Feb 11 06:10:07 2002 +++ virus-0.0.2/virus.c Thu Jul 18 16:36:40 2002 @@ -22,7 +22,7 @@ */ char *vi_Version = - "$Id: virus.c,v 0.0.1 2001/07/07 23:12:47 ripclaw Exp $"; + "$Id: virus.c,v 0.0.2 2002/07/07 20:40:11 ripclaw Exp $"; /* * To compile: