1 SRC = progops.c progtypes.c ops.c $(wildcard src/*.c) 2 OBJ = $(SRC:.c=.o) 3 4 all: main 5 6 clean: 7 rm -f main $(OBJ) 8 9 main: $(OBJ) 10 $(CC) $(LDFLAGS) $(OBJ) -o $@ 11 12 .c.o: 13 $(CC) -c $(CFLAGS) $< -o $@