source: rtems/c/src/libchip/network/Makefile.am @ 5a550a3b

4.104.114.84.95
Last change on this file since 5a550a3b was 5a550a3b, checked in by Ralf Corsepius <ralf.corsepius@…>, on Dec 1, 2003 at 7:02:50 AM

2003-12-01 Ralf Corsepius <corsepiu@…>

  • ide/Makefile.am: Use dirstamps for preinstallation. Reformat.
  • network/Makefile.am: Ditto.
  • rtc/Makefile.am: Ditto.
  • serial/Makefile.am: Ditto.
  • Property mode set to 100644
File size: 2.6 KB
Line 
1##
2## $Id$
3##
4
5LIBNAME = libnetchip
6LIB = $(ARCH)/$(LIBNAME).a
7
8C_FILES = cs8900.c dec21140.c i82586.c sonic.c if_fxp.c elnk.c open_eth.c
9OBJS = $(C_FILES:%.c=$(ARCH)/%.$(OBJEXT))
10
11include $(top_srcdir)/automake/compile.am
12include $(top_srcdir)/automake/lib.am
13
14#
15# Add local stuff here using +=
16#
17
18AM_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
19
20if LIBCHIP
21include_libchipdir = $(includedir)/libchip
22include_libchip_HEADERS = cs8900.h i82586var.h if_fxpvar.h sonic.h \
23    if_media.h mii.h open_eth.h
24
25$(LIB): $(OBJS)
26        $(make-library)
27
28$(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIB_VARIANT).a: $(LIB)
29        $(INSTALL_DATA) $< $@
30
31TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIB_VARIANT).a
32
33if HAS_NETWORKING
34all-local: $(ARCH) $(PREINSTALL_FILES) $(OBJS) $(LIB) $(TMPINSTALL_FILES)
35endif
36endif
37
38.PRECIOUS: $(LIB)
39
40EXTRA_DIST = README README.cs8900 README.dec21140 README.i82586 \
41    README.open_eth README.sonic cs8900.c cs8900.c.bsp dec21140.c i82586.c \
42    if_fxp.c open_eth.c sonic.c
43
44PREINSTALL_FILES =
45
46if LIBCHIP
47$(PROJECT_INCLUDE)/libchip/$(dirstamp):
48        @$(mkinstalldirs) $(PROJECT_INCLUDE)/libchip
49        @: > $(PROJECT_INCLUDE)/libchip/$(dirstamp)
50PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/$(dirstamp)
51
52$(PROJECT_INCLUDE)/libchip/cs8900.h: cs8900.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
53        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/cs8900.h
54PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/cs8900.h
55
56$(PROJECT_INCLUDE)/libchip/i82586var.h: i82586var.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
57        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/i82586var.h
58PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/i82586var.h
59
60$(PROJECT_INCLUDE)/libchip/if_fxpvar.h: if_fxpvar.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
61        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/if_fxpvar.h
62PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/if_fxpvar.h
63
64$(PROJECT_INCLUDE)/libchip/sonic.h: sonic.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
65        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/sonic.h
66PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/sonic.h
67
68$(PROJECT_INCLUDE)/libchip/if_media.h: if_media.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
69        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/if_media.h
70PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/if_media.h
71
72$(PROJECT_INCLUDE)/libchip/mii.h: mii.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
73        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/mii.h
74PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/mii.h
75
76$(PROJECT_INCLUDE)/libchip/open_eth.h: open_eth.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
77        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/open_eth.h
78PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/open_eth.h
79
80endif
81
82include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.