diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-11-22 13:41:11 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-11-22 13:41:11 +0000 |
commit | 9608320702e8dba9947987cd34001824638c434e (patch) | |
tree | 4352f820543cb2755ff8d6cfa2d9a0e7d0fc7544 /c/src/libmisc/monitor | |
parent | Small patch (rtems-rc-19991117-5.diff) from Ralf Corsepius (diff) | |
download | rtems-9608320702e8dba9947987cd34001824638c434e.tar.bz2 |
Patch rtems-rc-19991117-4.diff from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:
.. a major configuration cleanup
... major enhancement of automake support.
... and it contains a *major* breakthough:
Automake support for libchip and libmisc *LEAF* directories.
To implement this I have used several nasty tricks
* The basical trick is to wrap an old Makefile.in's contents into a
Makefile.am and still continue to use (i.e include) the old
*.cfg files.
* Replaced each INSTALL_IF_CHANGE and INSTALL_VARIANT with make
dependencies
* Add a gnu-make ifdef AUTOMAKE to main.cfg to avoid conflicts between
automake and RTEMS make rules
* Replaced each install:: and preinstall:: rule with make dependencies
* Replaced SUB_DIRS with SUBDIRS in all Makefile.ins (Automake
convention)
* Removed each manually added autoconf substitution which automake
performs automatically.
This is not yet full automake support, because using the temporary
installation directory, preinstallation in general and building variants
are in contradiction to automake's basic working principles ...
... the new Makefile.ams work still somewhat clumsy
... nevertheless they work (quite well).
WARNING:
At first glance this patch is small, but
* it affects the whole configuration system.
* it opens the road to introducing automake to all Makefile.ins
currently not being under automake control.
JOEL> Does this remove or add any files?
Both, all Makefile.ins below libchip and libmisc get replaced with
Makefile.ams.
Diffstat (limited to 'c/src/libmisc/monitor')
-rw-r--r-- | c/src/libmisc/monitor/Makefile.am | 53 | ||||
-rw-r--r-- | c/src/libmisc/monitor/Makefile.in | 80 |
2 files changed, 53 insertions, 80 deletions
diff --git a/c/src/libmisc/monitor/Makefile.am b/c/src/libmisc/monitor/Makefile.am new file mode 100644 index 0000000000..c1567ef917 --- /dev/null +++ b/c/src/libmisc/monitor/Makefile.am @@ -0,0 +1,53 @@ +## +## $Id$ +## + +AUTOMAKE_OPTIONS = foreign 1.4 + +LIBNAME = libmonitor-tmp +LIB = ${ARCH}/$(LIBNAME).a + +# C source names, if any, go here -- minus the .c +# We only build multiprocessing related files if HAS_MP was defined +MP_C_FILES = mon-mpci.c + +C_FILES = mon-command.c mon-symbols.c mon-prmisc.c mon-monitor.c \ + mon-object.c mon-server.c mon-task.c mon-queue.c mon-driver.c \ + mon-dname.c mon-itask.c mon-extension.c mon-manager.c mon-config.c + +if HAS_MP +C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o) $(MP_C_FILES:%.c=${ARCH}/%.o) +else +C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o) +endif + +H_FILES = monitor.h symbols.h +noinst_HEADERS = $(H_FILES) + +SRCS = README $(C_FILES) $(H_FILES) +OBJS = $(C_O_FILES) + +include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg +include $(RTEMS_ROOT)/make/lib.cfg + +PREINSTALL_FILES = \ +$(PROJECT_INCLUDE)/rtems \ +$(H_FILES:%=$(PROJECT_INCLUDE)/rtems/%) + +$(PROJECT_INCLUDE)/rtems: + $(mkinstalldirs) $@ +$(PROJECT_INCLUDE)/rtems/%.h: %.h + $(INSTALL_DATA) $< $@ + +# +# (OPTIONAL) Add local stuff here using += +# + +${LIB}: ${SRCS} ${OBJS} + $(make-library) + +all: ${ARCH} $(PREINSTALL_FILES) $(LIB) $(TMPINSTALL_FILES) + +EXTRA_DIST += $(C_FILES) $(MP_C_FILES) + +include $(top_srcdir)/../../../automake/local.am diff --git a/c/src/libmisc/monitor/Makefile.in b/c/src/libmisc/monitor/Makefile.in deleted file mode 100644 index 5804504388..0000000000 --- a/c/src/libmisc/monitor/Makefile.in +++ /dev/null @@ -1,80 +0,0 @@ -# -# $Id$ -# - -@SET_MAKE@ -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -top_builddir = .. -subdir = monitor - -RTEMS_ROOT = @RTEMS_ROOT@ -PROJECT_ROOT = @PROJECT_ROOT@ - -VPATH = @srcdir@ - -include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg -include $(RTEMS_ROOT)/make/lib.cfg - -INSTALL_CHANGE = @INSTALL_CHANGE@ -mkinstalldirs = $(SHELL) $(top_srcdir)/@RTEMS_TOPdir@/mkinstalldirs - -INSTALLDIRS = $(PROJECT_INCLUDE)/rtems - -$(INSTALLDIRS): - @$(mkinstalldirs) $(INSTALLDIRS) - -LIB = ${ARCH}/libmonitor-tmp.a - -# C source names, if any, go here -- minus the .c -# We only build multiprocessing related files if HAS_MP was defined -MP_C_PIECES_yes_V = mon-mpci -MP_C_PIECES = $(MP_C_PIECES_$(HAS_MP)_V) - -C_PIECES = mon-command mon-symbols mon-prmisc mon-monitor mon-object \ - mon-server mon-task mon-queue mon-driver mon-dname mon-itask \ - mon-extension mon-manager mon-config $(MP_C_PIECES) -C_FILES = $(C_PIECES:%=%.c) -C_O_FILES = $(C_PIECES:%=${ARCH}/%.o) - -H_FILES = -INSTALLED_H_FILES = $(srcdir)/monitor.h $(srcdir)/symbols.h - -SRCS = README $(C_FILES) $(H_FILES) $(INSTALLED_H_FILES) -OBJS = $(C_O_FILES) - -# -# (OPTIONAL) Add local stuff here using += -# - -DEFINES += -CPPFLAGS += -I$(srcdir) -CFLAGS += - -LD_PATHS += -LD_LIBS += -LDFLAGS += - -# -# Add your list of files to delete here. The config files -# already know how to delete some stuff, so you may want -# to just run 'make clean' first to see what gets missed. -# 'make clobber' already includes 'make clean' -# - -.PHONY: preinstall - -CLEAN_ADDITIONS += -CLOBBER_ADDITIONS += - -${LIB}: ${SRCS} ${OBJS} - $(make-library) - -all: preinstall ${ARCH} $(SRCS) $(LIB) - -preinstall: $(INSTALLED_H_FILES) - @$(INSTALL_CHANGE) -m 644 $(INSTALLED_H_FILES) $(PROJECT_INCLUDE)/rtems - -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - cd $(top_builddir) \ - && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status |