|
Lines 1-8
Link Here
|
| 1 |
--- Makefile.orig 2014-08-31 08:08:24 UTC |
1 |
--- Makefile.orig 2018-01-02 13:25:24 UTC |
| 2 |
+++ Makefile |
2 |
+++ Makefile |
| 3 |
@@ -10,13 +10,13 @@ CFLAGS += $(OPTFLAGS) $(WARNFLAGS) $(DEB |
3 |
@@ -8,20 +8,18 @@ WARNFLAGS = -Wall -Wextra -std=gnu99 -pe |
| 4 |
LDFLAGS += -Wl,-z,relro |
4 |
DEBUGFLAGS = -g |
|
|
5 |
CFLAGS += $(OPTFLAGS) $(WARNFLAGS) $(DEBUGFLAGS) |
| 6 |
OS := $(shell uname) |
| 7 |
-ifneq ($(OS), Darwin) |
| 8 |
- LDFLAGS += -Wl,-z,relro |
| 9 |
-endif |
| 10 |
+LDFLAGS += -Wl,-z,relro |
| 5 |
|
11 |
|
|
|
12 |
|
| 13 |
|
| 6 |
all: pcap pcapng |
14 |
all: pcap pcapng |
| 7 |
- gcc $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) pcapfix.c pcap.o pcapng.o -o pcapfix |
15 |
- gcc $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) pcapfix.c pcap.o pcapng.o -o pcapfix |
| 8 |
+ ${CC} $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) pcapfix.c pcap.o pcapng.o -o pcapfix |
16 |
+ ${CC} $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) pcapfix.c pcap.o pcapng.o -o pcapfix |
|
Lines 17-24
Link Here
|
| 17 |
|
25 |
|
| 18 |
install: |
26 |
install: |
| 19 |
install -pDm755 pcapfix $(DESTDIR)$(BINDIR)/pcapfix |
27 |
install -pDm755 pcapfix $(DESTDIR)$(BINDIR)/pcapfix |
| 20 |
@@ -29,4 +29,3 @@ uninstall: |
|
|
| 21 |
clean: |
| 22 |
rm -f *.o |
| 23 |
rm -f pcapfix |
| 24 |
- |