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

Last change on this file since c8f3e82 was 62ff2e4f, checked in by Joel Sherrill <joel.sherrill@…>, on 09/03/03 at 13:28:47

2003-09-03 Jiri Gaisler <jiri@…>

PR 477/networking

  • network/Makefile.am: Add driver for OpenCores? NIC.
  • network/README.open_eth, network/open_eth.c, network/open_eth.h: New files.
  • Property mode set to 100644
File size: 1.3 KB
Line 
1##
2## $Id$
3##
4
5
6include_libchipdir = $(includedir)/libchip
7
8LIBNAME = libnetchip
9LIB = $(ARCH)/$(LIBNAME).a
10
11C_FILES = cs8900.c dec21140.c i82586.c sonic.c if_fxp.c elnk.c open_eth.c
12OBJS = $(C_FILES:%.c=$(ARCH)/%.$(OBJEXT))
13
14include_libchip_HEADERS = cs8900.h i82586var.h if_fxpvar.h sonic.h if_media.h \
15    mii.h open_eth.h
16
17include $(top_srcdir)/../../../automake/compile.am
18include $(top_srcdir)/../../../automake/lib.am
19
20$(PROJECT_INCLUDE)/libchip:
21        @$(mkinstalldirs) $@
22$(PROJECT_INCLUDE)/libchip/%.h: %.h
23        $(INSTALL_DATA) $< $@
24
25#
26# Add local stuff here using +=
27#
28
29AM_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
30
31$(LIB): $(OBJS)
32        $(make-library)
33
34$(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIB_VARIANT).a: $(LIB)
35        $(INSTALL_DATA) $< $@
36
37if HAS_NETWORKING
38PREINSTALL_FILES = $(PROJECT_INCLUDE)/libchip \
39    $(include_libchip_HEADERS:%=$(PROJECT_INCLUDE)/libchip/%)
40endif
41
42TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIB_VARIANT).a
43
44if HAS_NETWORKING
45all-local: $(ARCH) $(PREINSTALL_FILES) $(OBJS) $(LIB) $(TMPINSTALL_FILES)
46endif
47
48.PRECIOUS: $(LIB)
49
50EXTRA_DIST = README README.cs8900 README.dec21140 README.i82586 \
51    README.open_eth README.sonic cs8900.c cs8900.c.bsp dec21140.c \
52    i82586.c if_fxp.c open_eth.c sonic.c
53
54include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.