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

4.104.114.84.95
Last change on this file since 8730f45 was a2117cd6, checked in by Joel Sherrill <joel.sherrill@…>, on 09/07/02 at 23:09:47

2002-09-07 Chris Johns <ccj@…>

  • network/Makefile.am, network/README.cs8900, network/cs8900.c, network/cs8900.h: Significant update which corrects the problem where the cs8900.c file was actually the BSP glue. Joel did some hacking so this file will compile. Previously it required providing a target.h file to compile.
  • network/cs8900.c.bsp: New file.
  • 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
12C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.$(OBJEXT))
13
14include_libchip_HEADERS = cs8900.h i82586var.h if_fxpvar.h sonic.h
15
16OBJS = $(C_O_FILES)
17
18include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
19include $(top_srcdir)/../../../automake/compile.am
20include $(top_srcdir)/../../../automake/lib.am
21
22$(PROJECT_INCLUDE)/libchip:
23        @$(mkinstalldirs) $@
24$(PROJECT_INCLUDE)/libchip/%.h: %.h
25        $(INSTALL_DATA) $< $@
26
27#
28# Add local stuff here using +=
29#
30
31AM_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
32AM_CFLAGS += $(LIBC_DEFINES)
33
34$(LIB): $(OBJS)
35        $(make-library)
36
37$(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIB_VARIANT).a: $(LIB)
38        $(INSTALL_DATA) $< $@
39
40if HAS_NETWORKING
41PREINSTALL_FILES = $(PROJECT_INCLUDE)/libchip \
42    $(include_libchip_HEADERS:%=$(PROJECT_INCLUDE)/libchip/%)
43endif
44
45TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIB_VARIANT).a
46
47if HAS_NETWORKING
48all-local: $(ARCH) $(PREINSTALL_FILES) $(OBJS) $(LIB) $(TMPINSTALL_FILES)
49endif
50
51.PRECIOUS: $(LIB)
52
53EXTRA_DIST = README README.cs8900 README.dec21140 README.i82586 README.sonic \
54    cs8900.c cs8900.c.bsp dec21140.c i82586.c if_fxp.c sonic.c
55
56include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.