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

4.104.114.84.95
Last change on this file since b752e632 was ad2b936, checked in by Ralf Corsepius <ralf.corsepius@…>, on 12/02/03 at 04:46:03

2003-12-02 Ralf Corsepius <corsepiu@…>

  • ide/Makefile.am: Remove all-local: $(ARCH).
  • network/Makefile.am: Remove all-local: $(ARCH).
  • rtc/Makefile.am: Remove all-local: $(ARCH).
  • serial/Makefile.am: Remove all-local: $(ARCH).
  • Property mode set to 100644
File size: 2.0 KB
Line 
1#
2#  $Id$
3#
4
5LIBNAME = libserialio
6LIB = $(ARCH)/$(LIBNAME).a
7
8C_FILES = mc68681.c mc68681_baud.c mc68681_reg.c mc68681_reg2.c \
9    mc68681_reg4.c mc68681_reg8.c ns16550.c z85c30.c z85c30_reg.c serprobe.c \
10    termios_baud2index.c termios_baud2num.c
11OBJS = $(C_FILES:%.c=$(ARCH)/%.$(OBJEXT))
12
13noinst_HEADERS = mc68681_p.h ns16550_p.h z85c30_p.h
14
15include $(top_srcdir)/automake/compile.am
16include $(top_srcdir)/automake/lib.am
17
18#
19# Add local stuff here using +=
20#
21if LIBCHIP
22include_libchipdir = $(includedir)/libchip
23include_libchip_HEADERS = mc68681.h ns16550.h z85c30.h serial.h sersupp.h
24
25$(LIB): $(OBJS)
26        $(make-library)
27
28all-local: $(PREINSTALL_FILES) $(LIB)
29endif
30
31DOC_FILES = README.mc68681 README.ns16550 README.xr88681 README.z85c30 \
32    STATUS
33
34EXTRA_DIST = $(C_FILES) $(DOC_FILES)
35
36PREINSTALL_FILES =
37
38if LIBCHIP
39$(PROJECT_INCLUDE)/libchip/$(dirstamp):
40        @$(mkinstalldirs) $(PROJECT_INCLUDE)/libchip
41        @: > $(PROJECT_INCLUDE)/libchip/$(dirstamp)
42PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/$(dirstamp)
43
44$(PROJECT_INCLUDE)/libchip/mc68681.h: mc68681.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
45        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/mc68681.h
46PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/mc68681.h
47
48$(PROJECT_INCLUDE)/libchip/ns16550.h: ns16550.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
49        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/ns16550.h
50PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/ns16550.h
51
52$(PROJECT_INCLUDE)/libchip/z85c30.h: z85c30.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
53        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/z85c30.h
54PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/z85c30.h
55
56$(PROJECT_INCLUDE)/libchip/serial.h: serial.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
57        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/serial.h
58PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/serial.h
59
60$(PROJECT_INCLUDE)/libchip/sersupp.h: sersupp.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
61        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/sersupp.h
62PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/sersupp.h
63endif
64
65include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.