--- Makefile.orig 2014-08-11 19:16:15 UTC +++ Makefile @@ -1,15 +1,14 @@ # Makefile for countdown -BINDIR = /usr/local/bin -MANDIR = /usr/local/man/man1 -CC = cc -CFLAGS = -O -ansi -pedantic -U__STRICT_ANSI__ -Wall -Wpointer-arith -Wshadow -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wno-long-long -LDFLAGS = -s +BINDIR= /usr/local/bin +MANDIR= /usr/local/man/man1 +CC?= cc +CFLAGS+= -ansi -pedantic -U__STRICT_ANSI__ -Wall -Wpointer-arith -Wshadow -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wno-long-long all: countdown countdown: countdown.c - $(CC) $(CFLAGS) countdown.c $(LDFLAGS) -o countdown + $(CC) $(CFLAGS) countdown.c -o countdown install: all