CC = gcc
#CC = cc
+# Enable compiler warnings. This is ab absolute minimum.
+CFLAGS += -Wall -Wextra
+
# Define your optimization flags. Most compilers understand -O and -O2,
# Standard (note: Solaris on UltraSparc using gcc 2.8.x might not like this.)
#
.SUFFIXES: .c .o .h
$(COMMON_OBJECT): %.o: %.c
- $(CC) $(OPTS) $(COMMON_DEFS) -o $@ -c $<
+ $(CC) $(CFLAGS) $(OPTS) $(COMMON_DEFS) -o $@ -c $<
$(BLORB_OBJECT): %.o: %.c
- $(CC) $(OPTS) -o $@ -c $<
+ $(CC) $(CFLAGS) $(OPTS) -o $@ -c $<
$(DUMB_OBJECT): %.o: %.c
- $(CC) $(OPTS) -o $@ -c $<
+ $(CC) $(CFLAGS) $(OPTS) -o $@ -c $<
$(CURSES_OBJECT): %.o: %.c
- $(CC) $(OPTS) $(CURSES_DEFS) $(INCL) -o $@ -c $<
+ $(CC) $(CFLAGS) $(OPTS) $(CURSES_DEFS) $(INCL) -o $@ -c $<
$(SDL_OBJECT): %.o: %.c
- $(CC) $(OPTS) $(SDL_DEFS) $(INCL) -o $@ -c $<
+ $(CC) $(CFLAGS) $(OPTS) $(SDL_DEFS) $(INCL) -o $@ -c $<
# If you're going to make this target manually, you'd better know which