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. -g 4 LDFLAGS = -lm 5 6 all: main 7 8 clean: 9 rm -f main $(OBJ) 10 11 main: $(OBJ) 12 $(CC) $(LDFLAGS) $(OBJ) -o $@ 13 14 .c.o: 15 $(CC) -c $(CFLAGS) $< -o $@