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
|
CC ?= gcc
|
||||||
STRIP ?= strip
|
STRIP ?= strip
|
||||||
CFLAGS ?= -O2
|
CFLAGS ?= -Os
|
||||||
LDFLAGS += -lxcb
|
LDFLAGS += -lxcb
|
||||||
CFDEBUG = -g3 -pedantic -Wall -Wunused-parameter -Wlong-long\
|
CFDEBUG = -g3 -pedantic -Wall -Wunused-parameter -Wlong-long\
|
||||||
-Wsign-conversion -Wconversion -Wimplicit-function-declaration
|
-Wsign-conversion -Wconversion -Wimplicit-function-declaration
|
||||||
|
@ -17,6 +17,12 @@ all: ${EXEC}
|
||||||
.c.o:
|
.c.o:
|
||||||
${CC} ${CFLAGS} -o $@ -c $<
|
${CC} ${CFLAGS} -o $@ -c $<
|
||||||
|
|
||||||
|
${OBJS}: config.h
|
||||||
|
|
||||||
|
config.h:
|
||||||
|
@echo creating $@ from config.def.h
|
||||||
|
@cp config.def.h $@
|
||||||
|
|
||||||
${EXEC}: ${OBJS}
|
${EXEC}: ${OBJS}
|
||||||
${CC} ${LDFLAGS} -o ${EXEC} ${OBJS}
|
${CC} ${LDFLAGS} -o ${EXEC} ${OBJS}
|
||||||
${STRIP} -s ${EXEC}
|
${STRIP} -s ${EXEC}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user