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