source: rtems/c/src/libchip/serial/Makefile.am @ e414566

4.104.114.84.9
Last change on this file since e414566 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 = libserialio
10LIB = $(ARCH)/$(LIBNAME).a
11
12C_FILES = mc68681.c mc68681_baud.c mc68681_reg.c mc68681_reg2.c \
13    mc68681_reg4.c mc68681_reg8.c ns16550.c z85c30.c z85c30_reg.c serprobe.c \
14    termios_baud2index.c termios_baud2num.c
15C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
16
17noinst_HEADERS = mc68681_p.h ns16550_p.h z85c30_p.h
18include_libchip_HEADERS = mc68681.h ns16550.h z85c30.h serial.h sersupp.h
19
20OBJS = $(C_O_FILES)
21
22include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
23include $(top_srcdir)/../../../automake/compile.am
24include $(top_srcdir)/../../../automake/lib.am
25
26PREINSTALL_FILES = $(PROJECT_INCLUDE)/libchip \
27    $(include_libchip_HEADERS:%=$(PROJECT_INCLUDE)/libchip/%)
28
29TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIB_VARIANT).a
30
31$(PROJECT_INCLUDE)/libchip:
32        @$(mkinstalldirs) $@
33$(PROJECT_INCLUDE)/libchip/%.h: %.h
34        $(INSTALL_DATA) $< $@
35
36#
37# Add local stuff here using +=
38#
39
40AM_CFLAGS += $(LIBC_DEFINES)
41
42$(LIB): $(OBJS)
43        $(make-library)
44
45$(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIB_VARIANT).a: $(LIB)
46        $(INSTALL_DATA) $< $@
47
48all-local: $(ARCH) $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
49
50DOC_FILES = README.mc68681 README.ns16550 README.xr88681 README.z85c30 \
51    STATUS
52
53EXTRA_DIST = $(C_FILES) $(DOC_FILES)
54
55include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.