1 2 3 4 5 6 7 8 9 10 11 12
CFLAGS=-Wall -Werror -std=gnu99 -pedantic -ggdb3 OBJS=outname.o outname_test.o PROGRAM=outname_test $(PROGRAM): $(OBJS) gcc $(CFLAGS) -o $@ $(OBJS) %.o: %.c outname.h gcc -c $(CFLAGS) $< clean: rm -f $(OBJS) $(PROGRAM) *~