Description: Use all buildflags as provided by dpkg Author: Christoph Biedl Forwarded: no Last-Update: 2016-12-06 --- a/makefile +++ b/makefile @@ -9,26 +9,24 @@ mandir = ${sharedir}/man O=aoe.o bpf.o ${PLATFORM}.o ata.o dat.o -CFLAGS += -Wall -g -O2 -fno-common -CC = gcc vblade: $O - ${CC} -o vblade $O + ${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -o vblade $O aoe.o : aoe.c config.h dat.h fns.h makefile - ${CC} ${CFLAGS} -c $< + ${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -c $< ${PLATFORM}.o : ${PLATFORM}.c config.h dat.h fns.h makefile - ${CC} ${CFLAGS} -c $< + ${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -c $< ata.o : ata.c config.h dat.h fns.h makefile - ${CC} ${CFLAGS} -c $< + ${CC} $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -c $< bpf.o : bpf.c - ${CC} ${CFLAGS} -c $< + ${CC} $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -c $< dat.o : dat.c - ${CC} ${CFLAGS} -c $< + ${CC} $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -c $< config.h : config/config.h.in makefile @if ${CC} ${CFLAGS} config/u64.c > /dev/null 2>&1; then \