blob: 7d66038581b2b21a1abab8756227f89e278ade1c (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
--- a/Makefile
+++ b/Makefile
@@ -28,13 +28,13 @@
STATIC=
CC=gcc
-CFLAGS+=-g -Wall -DETHERS='"$(ETHERS)"'
+CFLAGS+=-Wall -DETHERS='"$(ETHERS)"'
OBJS=ethers.o ipguard.o packet.o system.o
.c.o:
@echo Compiling $*.c
- @$(CC) -c $(CFLAGS) $(INCLUDES) $(DEFINES) $<
+ $(CC) -c $(CFLAGS) $(INCLUDES) $(DEFINES) $<
all: start $(NAME)
@@ -47,7 +47,7 @@
$(NAME): $(OBJS)
@echo Linking $@
- @$(CC) -o $@ $(OBJS) $(LIBS) $(STATIC)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) $(STATIC)
clean:
@echo Cleaning OBJS
@@ -58,16 +58,16 @@
@rm -f $(NAME)
install: all
- mkdir -p -m 755 $(PREFIX)/sbin
- install -s -m 755 $(NAME) $(PREFIX)/sbin/$(NAME)
- mkdir -p -m 755 $(PREFIX)/man/man8
- install -m 644 doc/$(NAME).8 $(PREFIX)/man/man8/$(NAME).8
+ mkdir -p -m 755 ${D}$(PREFIX)/sbin
+ install -m 755 $(NAME) ${D}$(PREFIX)/sbin/$(NAME)
+ mkdir -p -m 755 ${D}$(PREFIX)/share/man/man8
+ install -m 644 doc/$(NAME).8 ${D}$(PREFIX)/share/man/man8/$(NAME).8
uninstall: deinstall
deinstall:
- rm -f $(PREFIX)/man/man8/$(NAME).8
- rm -f $(PREFIX)/sbin/$(NAME)
+ rm -f ${D}$(PREFIX)/share/man/man8/$(NAME).8
+ rm -f ${D}$(PREFIX)/sbin/$(NAME)
ethers.o: ipguard.h
ipguard.o: ipguard.h
|