This commit is contained in:
GitHub Merge Button 2012-07-17 05:02:47 -07:00
commit 45daeabd55
2 changed files with 12 additions and 1 deletions

5
.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
config.h
bar
*.o
*.swp
*~

View File

@ -1,6 +1,6 @@
CC ?= gcc
STRIP ?= strip
CFLAGS ?= -O2
CFLAGS ?= -Os
LDFLAGS += -lxcb
CFDEBUG = -g3 -pedantic -Wall -Wunused-parameter -Wlong-long\
-Wsign-conversion -Wconversion -Wimplicit-function-declaration
@ -17,6 +17,12 @@ all: ${EXEC}
.c.o:
${CC} ${CFLAGS} -o $@ -c $<
${OBJS}: config.h
config.h:
@echo creating $@ from config.def.h
@cp config.def.h $@
${EXEC}: ${OBJS}
${CC} ${LDFLAGS} -o ${EXEC} ${OBJS}
${STRIP} -s ${EXEC}