mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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:
parent
59c82af185
commit
2e20a7929f
2 changed files with 1 additions and 5 deletions
|
@ -5,16 +5,12 @@ OBJ = ${SRC:.c=.o}
|
||||||
|
|
||||||
all: aurblup
|
all: aurblup
|
||||||
|
|
||||||
.c.o:
|
|
||||||
${CC} -c ${CFLAGS} $<
|
|
||||||
|
|
||||||
config.h:
|
config.h:
|
||||||
cp config.h.proto config.h
|
cp config.h.proto config.h
|
||||||
|
|
||||||
${OBJ}: config.h
|
${OBJ}: config.h
|
||||||
|
|
||||||
aurblup: ${OBJ}
|
aurblup: ${OBJ}
|
||||||
${CC} -o $@ ${OBJ} ${LDFLAGS}
|
|
||||||
|
|
||||||
install: aurblup
|
install: aurblup
|
||||||
install -Dm0755 aurblup "${DESTDIR}${PREFIX}/bin/aurblup"
|
install -Dm0755 aurblup "${DESTDIR}${PREFIX}/bin/aurblup"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
PREFIX = /usr/local
|
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
|
LDFLAGS = -g -lalpm -lmysqlclient
|
||||||
|
|
||||||
CC = cc
|
CC = cc
|
||||||
|
|
Loading…
Add table
Reference in a new issue