2017-01-19 | Paul Boddie | raw annotate files changeset graph | Enabled all compiler warnings, fixed attribute initialiser warnings along with various control-flow and variable warnings. |
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 = -Wall -I. -finput-charset=UTF-8 4 LDFLAGS = -lm -lgc 5 6 ifdef ARCH 7 CC := $(ARCH)-$(CC) 8 endif 9 10 all: main 11 12 clean: 13 rm -f main $(OBJ) 14 15 main: $(OBJ) 16 $(CC) $(LDFLAGS) $(OBJ) -o $@ 17 18 .c.o: 19 $(CC) -c $(CFLAGS) $< -o $@