############################################### # makefile2 (Non-File Targets) ############################################### ############################################### # Build rules for non-file targets ############################################### all: testmystring clobber: clean rm -f *~ \#*\# core clean: rm -f testmystring *.o ############################################### # Build rules for file targets ############################################### testmystring: testmystring.o mystring.o gcc -o testmystring testmystring.o mystring.o testmystring.o: testmystring.c mystring.h gcc -Wall -ansi -pedantic -c -o testmystring.o testmystring.c mystring.o: mystring.c mystring.h gcc -Wall -ansi -pedantic -c -o mystring.o mystring.c