commit
0723d9320d
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
config.h
|
||||
bar
|
||||
*.o
|
||||
*.swp
|
||||
*~
|
8
Makefile
8
Makefile
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue
Block a user