File tree Expand file tree Collapse file tree 4 files changed +2413
-0
lines changed Expand file tree Collapse file tree 4 files changed +2413
-0
lines changed Original file line number Diff line number Diff line change
1
+ # $Id: Makefile,v 1.2 2007/06/03 17:50:16 jasone Exp $
2
+
3
+ # Path to parent kernel include files directory
4
+ LIBC_INCLUDE =/usr/include
5
+
6
+ DEFINES =
7
+
8
+ # options if you have a bind>=4.9.4 libresolv (or, maybe, glibc)
9
+ LDLIBS =-lresolv
10
+ ADDLIB =
11
+
12
+ # options if you compile with libc5, and without a bind>=4.9.4 libresolv
13
+ # NOT AVAILABLE. Please, use libresolv.
14
+
15
+ CC =gcc
16
+ # What a pity, all new gccs are buggy and -Werror does not work. Sigh.
17
+ # CCOPT=-D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g -Werror
18
+ CCOPT =-D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g
19
+ CFLAGS =$(CCOPT ) $(GLIBCFIX ) $(DEFINES )
20
+
21
+ IPV4_TARGETS =cping
22
+ TARGETS =$(IPV4_TARGETS )
23
+
24
+ LASTTAG: =` git-describe HEAD | sed -e ' s/-.*//' `
25
+ TAG: =` date +s%Y%m%d `
26
+
27
+ all : $(TARGETS )
28
+
29
+
30
+ cping : cping.o cping_common.o
31
+ cping.o cping_common.o : cping_common.h
32
+
33
+ check-kernel :
34
+ ifeq ($(KERNEL_INCLUDE ) ,)
35
+ @echo "Please, set correct KERNEL_INCLUDE"; false
36
+ else
37
+ @set -e; \
38
+ if [ ! -r $(KERNEL_INCLUDE)/linux/autoconf.h ]; then \
39
+ echo "Please, set correct KERNEL_INCLUDE"; false; fi
40
+ endif
41
+
42
+ modules : check-kernel
43
+ $(MAKE ) KERNEL_INCLUDE=$(KERNEL_INCLUDE ) -C Modules
44
+
45
+ clean :
46
+ @rm -f * .o $(TARGETS )
You can’t perform that action at this time.
0 commit comments