--- Makefile.orig 2006-01-14 15:54:05 UTC +++ Makefile @@ -1,24 +1,23 @@ TARGET = yeahconsole -CC = gcc +CC ?= gcc #CC = cc INSTALL = install PREFIX = /usr/local LIBS = -lX11 -INCLUDES = -I/usr/X11R6/include -LIB_DIRS = -L/usr/X11R6/lib -FLAGS = -Os -Wall +INCLUDES = -I$(LOCALBASE)/include +LIB_DIRS = -L$(LOCALBASE)/lib +CFLAGS ?= -Os -Wall OBJECTS := yeahconsole.o SOURCES := yeahconsole.c $(TARGET): $(OBJECTS) - $(CC) $(DEFINES) $(INCLUDES) $(LIB_DIRS) $(LIBS) -o $@ $< - strip $@ + $(CC) $(DEFINES) $(INCLUDES) $(LIB_DIRS) $(LIBS) -o $@ $> $(OBJECTS): $(SOURCES) - $(CC) $(FLAGS) $(DEFINES) $(INCLUDES) $(LIB_DIRS) -c -o $@ $< + $(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) $(LIB_DIRS) -c -o $@ $< clean: rm -rf $(TARGET) $(OBJECTS)