summaryrefslogtreecommitdiff
blob: ed5efb2c2e23648e22d57cd0340ff1267a674e7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
--- 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"; \