sselp

simple X selection printer to stdout
git clone git://git.suckless.org/sselp
Log | Files | Refs | README | LICENSE

commit a8ef4352d45b8f69e20d5ac2ab40bea0bb4fe78b
parent fa1b9f322b694d086b3b19084f5400af62279376
Author: Anselm R Garbe <garbeam@gmail.com>
Date:   Tue, 29 Jul 2008 19:17:45 +0100

made config.mk consistent to other projects
Diffstat:
Makefile | 6++----
config.mk | 8+++-----
2 files changed, 5 insertions(+), 9 deletions(-)

diff --git a/Makefile b/Makefile @@ -12,7 +12,6 @@ options: @echo "CFLAGS = ${CFLAGS}" @echo "LDFLAGS = ${LDFLAGS}" @echo "CC = ${CC}" - @echo "LD = ${LD}" .c.o: @echo CC $< @@ -21,9 +20,8 @@ options: ${OBJ}: config.mk sselp: ${OBJ} - @echo LD $@ - @${LD} -o $@ ${OBJ} ${LDFLAGS} - @strip $@ + @echo CC -o $@ + @${CC} -o $@ ${OBJ} ${LDFLAGS} clean: @echo cleaning diff --git a/config.mk b/config.mk @@ -15,11 +15,9 @@ INCS = -I. -I/usr/include -I${X11INC} LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 # flags -CFLAGS = -Os ${INCS} -DVERSION=\"${VERSION}\" -LDFLAGS = ${LIBS} -#CFLAGS = -g -Wall -O2 ${INCS} -DVERSION=\"${VERSION}\" -#LDFLAGS = -g ${LIBS} +CPPFLAGS = -DVERSION=\"${VERSION}\" +CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS} +LDFLAGS = -s ${LIBS} # compiler and linker CC = cc -LD = ${CC}