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

4.104.114.84.95
Last change on this file since c7ff624c was c7ff624c, checked in by Ralf Corsepius <ralf.corsepius@…>, on 07/25/03 at 06:35:06

2003-07-25 Ralf Corsepius <corsepiu@…>

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