source: rtems/c/src/libmisc/monitor/Makefile.am @ 48bfd992

4.104.114.84.95
Last change on this file since 48bfd992 was d5b004b, checked in by Joel Sherrill <joel.sherrill@…>, on 11/23/99 at 13:52:59

Patch from Ralf Corsepius <corsepiu@…>
to convert the libmisc directory from Makefile.in to Makefile.am.

  • Property mode set to 100644
File size: 1.2 KB
Line 
1##
2##  $Id$
3##
4
5AUTOMAKE_OPTIONS = foreign 1.4
6
7LIBNAME = libmonitor-tmp
8LIB = ${ARCH}/$(LIBNAME).a
9
10# C source names, if any, go here -- minus the .c
11# We only build multiprocessing related files if HAS_MP was defined
12MP_C_FILES = mon-mpci.c
13
14C_FILES = mon-command.c mon-symbols.c mon-prmisc.c mon-monitor.c \
15    mon-object.c mon-server.c mon-task.c mon-queue.c mon-driver.c \
16    mon-dname.c mon-itask.c mon-extension.c mon-manager.c mon-config.c
17
18if HAS_MP
19C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o) $(MP_C_FILES:%.c=${ARCH}/%.o)
20else
21C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
22endif
23
24H_FILES = monitor.h symbols.h
25noinst_HEADERS = $(H_FILES)
26
27SRCS = README $(C_FILES) $(H_FILES)
28OBJS = $(C_O_FILES)
29
30include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
31include $(RTEMS_ROOT)/make/lib.cfg
32
33PREINSTALL_FILES = \
34$(PROJECT_INCLUDE)/rtems \
35$(H_FILES:%=$(PROJECT_INCLUDE)/rtems/%)
36
37$(PROJECT_INCLUDE)/rtems:
38        $(mkinstalldirs) $@
39$(PROJECT_INCLUDE)/rtems/%.h: %.h
40        $(INSTALL_DATA) $< $@
41
42#
43# (OPTIONAL) Add local stuff here using +=
44#
45
46${LIB}: ${OBJS}
47        $(make-library)
48
49all: ${ARCH} $(PREINSTALL_FILES) $(LIB) $(TMPINSTALL_FILES)
50
51EXTRA_DIST += $(C_FILES) $(MP_C_FILES)
52
53include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.