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