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-24-makefile.patch

36 lines
885 B

--- a/makefile
+++ b/makefile
@@ -8,27 +8,22 @@
sharedir = ${prefix}/share
mandir = ${sharedir}/man
-O=aoe.o bpf.o ${PLATFORM}.o ata.o
-CFLAGS += -Wall -g -O2
-CC = gcc
+O=aoe.o bpf.o ${PLATFORM}.o ata.o dat.o
+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
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"; \