1 | ## |
---|
2 | ## $Id$ |
---|
3 | ## |
---|
4 | |
---|
5 | include_netinetdir = $(includedir)/netinet |
---|
6 | |
---|
7 | LIB = $(ARCH)/lib.a |
---|
8 | |
---|
9 | C_FILES = if_ether.c igmp.c in.c in_cksum.c in_pcb.c in_proto.c in_rmx.c \ |
---|
10 | ip_divert.c ip_fw.c ip_icmp.c ip_input.c ip_mroute.c ip_output.c \ |
---|
11 | raw_ip.c tcp_debug.c tcp_input.c tcp_output.c tcp_subr.c tcp_timer.c \ |
---|
12 | tcp_usrreq.c udp_usrreq.c |
---|
13 | C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.$(OBJEXT)) |
---|
14 | |
---|
15 | OBJS = $(C_O_FILES) |
---|
16 | |
---|
17 | include $(top_srcdir)/../automake/multilib.am |
---|
18 | include $(top_srcdir)/../automake/compile.am |
---|
19 | include $(top_srcdir)/../automake/lib.am |
---|
20 | |
---|
21 | # |
---|
22 | # Add local stuff here using += |
---|
23 | # |
---|
24 | |
---|
25 | # Add -DFORWARD_PROTOCOL to enable UDP forwarding -- requires missing net/pf.h |
---|
26 | AM_CPPFLAGS += -D_COMPILING_BSD_KERNEL_ -DKERNEL -DINET -DNFS -DDIAGNOSTIC \ |
---|
27 | -DBOOTP_COMPAT |
---|
28 | |
---|
29 | $(LIB): $(OBJS) |
---|
30 | $(make-library) |
---|
31 | |
---|
32 | all-local: $(PREINSTALL_FILES) $(ARCH) $(OBJS) $(LIB) |
---|
33 | |
---|
34 | .PRECIOUS: $(LIB) |
---|
35 | |
---|
36 | EXTRA_DIST = if_ether.c igmp.c igmp_var.h in.c in_cksum.c in_cksum_i386.c \ |
---|
37 | in_cksum_m68k.c in_cksum_powerpc.c in_pcb.c in_proto.c in_rmx.c \ |
---|
38 | ip_divert.c ip_fw.c ip_icmp.c ip_input.c ip_mroute.c ip_output.c \ |
---|
39 | raw_ip.c tcp_debug.c tcp_input.c tcp_output.c tcp_subr.c tcp_timer.c \ |
---|
40 | tcp_usrreq.c udp_usrreq.c |
---|
41 | |
---|
42 | include_netinet_HEADERS = icmp_var.h if_ether.h igmp.h igmp_var.h in.h in_pcb.h in_systm.h \ |
---|
43 | in_var.h ip.h ip_fw.h ip_icmp.h ip_mroute.h ip_var.h tcp.h tcp_debug.h \ |
---|
44 | tcp_fsm.h tcp_seq.h tcp_timer.h tcp_var.h tcpip.h udp.h udp_var.h |
---|
45 | |
---|
46 | PREINSTALL_FILES = $(PROJECT_INCLUDE)/netinet \ |
---|
47 | $(include_netinet_HEADERS:%=$(PROJECT_INCLUDE)/netinet/%) |
---|
48 | |
---|
49 | $(PROJECT_INCLUDE)/netinet: |
---|
50 | @$(mkinstalldirs) $@ |
---|
51 | |
---|
52 | $(PROJECT_INCLUDE)/netinet/%.h: %.h |
---|
53 | $(INSTALL_DATA) $< $@ |
---|
54 | |
---|
55 | include $(top_srcdir)/../automake/local.am |
---|