You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-block/vblade/files/vblade-25-makefile.patch

37 lines
889 B

--- a/makefile
+++ b/makefile
@@ -9,29 +9,23 @@ sharedir = ${prefix}/share
mandir = ${sharedir}/man
O=aoe.o bpf.o ${PLATFORM}.o ata.o dat.o
-CFLAGS += -Wall -g -O2 -fno-common
-CC = gcc
+CFLAGS += -Wall
vblade: $O
- ${CC} -o vblade $O
+ ${CC} ${LDFLAGS} -o vblade $O ${LIBS}
aoe.o : aoe.c config.h dat.h fns.h makefile
- ${CC} ${CFLAGS} -c $<
${PLATFORM}.o : ${PLATFORM}.c config.h dat.h fns.h makefile
- ${CC} ${CFLAGS} -c $<
ata.o : ata.c config.h dat.h fns.h makefile
- ${CC} ${CFLAGS} -c $<
bpf.o : bpf.c
- ${CC} ${CFLAGS} -c $<
dat.o : dat.c
- ${CC} ${CFLAGS} -c $<
config.h : config/config.h.in makefile
- @if ${CC} ${CFLAGS} config/u64.c > /dev/null 2>&1; then \
+ @if ${CC} ${CFLAGS} ${CPPFLAGS} config/u64.c > /dev/null 2>&1; then \
sh -xc "cp config/config.h.in config.h"; \
else \
sh -xc "sed 's!^//u64 !!' config/config.h.in > config.h"; \