File: Makefile

package info (click to toggle)
arpd 1.0.2-7
  • links: PTS
  • area: main
  • in suites: potato
  • size: 92 kB
  • ctags: 27
  • sloc: ansic: 253; sh: 68; makefile: 60
file content (34 lines) | stat: -rw-r--r-- 694 bytes parent folder | download | duplicates (4)
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
# arpd makefile, Jonathan Layes 960530

VERSION = 1.0.2
KERNELVERSION = linux-2.0.0

CC = gcc
CFLAGS = -m486 -O3 -pipe -fomit-frame-pointer -Wall
CDEFS  = -DARPD_VERSION=\"$(VERSION)\" -DNDEBUG

all:	arpd

arpd:	arpd.o

.c.o:
	$(CC) $(CPPFLAGS) $(CFLAGS) $(CDEFS) -c $< -o $@

clean:
	rm -f arpd *.o core

package: clean
	-(cd /usr/src; \
	 for file in \
			include/linux/if_arp.h \
			include/linux/kerneld.h \
			include/linux/interrupt.h \
			net/ipv4/arp.c \
			net/ipv4/Config.in \
			Documentation/Configure.help \
			MAINTAINERS \
		; do \
		diff -u -d $(KERNELVERSION).orig/$$file linux/$$file;\
	 done) > arpd-$(VERSION).kernel.patch
	cd ..; tar -czf arpd/arpd-$(VERSION).tar.gz arpd