2016-12-09 | Paul Boddie | file changeset files shortlog | Split the native module into modules within a common native package. Split the native function implementations into several files corresponding to the native package modules. |
paul@354 | 1 | SRC = exceptions.c main.c $(wildcard native/*.c) ops.c progops.c progtypes.c $(wildcard src/*.c) |
paul@126 | 2 | OBJ = $(SRC:.c=.o) |
paul@132 | 3 | CFLAGS = -I. |
paul@198 | 4 | LDFLAGS = -lm |
paul@126 | 5 | |
paul@126 | 6 | all: main |
paul@126 | 7 | |
paul@126 | 8 | clean: |
paul@126 | 9 | rm -f main $(OBJ) |
paul@126 | 10 | |
paul@126 | 11 | main: $(OBJ) |
paul@126 | 12 | $(CC) $(LDFLAGS) $(OBJ) -o $@ |
paul@126 | 13 | |
paul@126 | 14 | .c.o: |
paul@126 | 15 | $(CC) -c $(CFLAGS) $< -o $@ |