CC=gcc CFLAGS = -std=c99 -pedantic -Wall -Wextra -O -g testRand: testRand.o myRand.o $(CC) $(CFLAGS) -o testRand testRand.o myRand.o testRand.o: testRand.c myRand.h $(CC) $(CFLAGS) -c testRand.c myRand.h myRand.o: myRand.c myRand.h # let the compiler default to what we want here # clean up target to get rid of object, back-up and executables clean: \rm *.gch *.o *~ a.out testRand