2017-01-06 | Paul Boddie | raw annotate files changeset graph | Added explicit character encoding options for gcc. |
1 SRC = exceptions.c main.c $(wildcard native/*.c) ops.c progops.c progtypes.c $(wildcard src/*.c) 2 OBJ = $(SRC:.c=.o) 3 CFLAGS = -I. -finput-charset=UTF-8 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 $@