Merge pull request #3 from c00kiemon5ter/master

Makefile changes
This commit is contained in:
Giuseppe 2012-07-17 05:04:55 -07:00
commit 0723d9320d
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}