aurblup: use implicit make rules and adjust CFLAGS

We don't need to add rules for implicit .c -> .o conversions. Also add
-O2 to the CFLAGS as gcc doesn't print many warnings unless at least
some level of optimization is used.

Signed-off-by: Dan McGee <dan@archlinux.org>
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
Dan McGee 2011-06-27 17:31:32 -05:00 committed by Lukas Fleischer
parent 59c82af185
commit 2e20a7929f
2 changed files with 1 additions and 5 deletions

View file

@ -5,16 +5,12 @@ OBJ = ${SRC:.c=.o}
all: aurblup
.c.o:
${CC} -c ${CFLAGS} $<
config.h:
cp config.h.proto config.h
${OBJ}: config.h
aurblup: ${OBJ}
${CC} -o $@ ${OBJ} ${LDFLAGS}
install: aurblup
install -Dm0755 aurblup "${DESTDIR}${PREFIX}/bin/aurblup"

View file

@ -1,6 +1,6 @@
PREFIX = /usr/local
CFLAGS = -g -std=c99 -pedantic -Wall -I/usr/include/mysql
CFLAGS = -g -O2 -std=c99 -pedantic -Wall -I/usr/include/mysql
LDFLAGS = -g -lalpm -lmysqlclient
CC = cc