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

4.104.114.84.95
Last change on this file since b449267 was e414566, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 28, 2001 at 1:35:05 PM

2001-09-28 Ralf Corsepius <corsepiu@…>

  • rtc/Makefile.am: Use 'PREINSTALL_FILES ='.
  • network/Makefile.am: Use 'PREINSTALL_FILES ='.
  • serial/Makefile.am: Use 'PREINSTALL_FILES ='.
  • Property mode set to 100644
File size: 1.3 KB
Line 
1##
2## $Id$
3##
4
5AUTOMAKE_OPTIONS = foreign 1.4
6
7include_libchipdir = $(includedir)/libchip
8
9LIBNAME = libnetchip
10LIB = $(ARCH)/$(LIBNAME).a
11
12# add cs8900.c to work with it and make it compile
13C_FILES = dec21140.c i82586.c sonic.c
14C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
15
16include_libchip_HEADERS = cs8900.h i82586var.h sonic.h
17
18OBJS = $(C_O_FILES)
19
20include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
21include $(top_srcdir)/../../../automake/compile.am
22include $(top_srcdir)/../../../automake/lib.am
23
24$(PROJECT_INCLUDE)/libchip:
25        @$(mkinstalldirs) $@
26$(PROJECT_INCLUDE)/libchip/%.h: %.h
27        $(INSTALL_DATA) $< $@
28
29#
30# Add local stuff here using +=
31#
32
33AM_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
34AM_CFLAGS += $(LIBC_DEFINES)
35
36$(LIB): $(OBJS)
37        $(make-library)
38
39$(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIB_VARIANT).a: $(LIB)
40        $(INSTALL_DATA) $< $@
41
42if HAS_NETWORKING
43PREINSTALL_FILES = $(PROJECT_INCLUDE)/libchip \
44    $(include_libchip_HEADERS:%=$(PROJECT_INCLUDE)/libchip/%)
45endif
46
47TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIB_VARIANT).a
48
49if HAS_NETWORKING
50all-local: $(ARCH) $(PREINSTALL_FILES) $(OBJS) $(LIB) $(TMPINSTALL_FILES)
51endif
52
53.PRECIOUS: $(LIB)
54
55EXTRA_DIST = README README.cs8900 README.dec21140 README.i82586 README.sonic \
56    cs8900.c dec21140.c i82586.c sonic.c
57
58include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.