From e31c63e5a8bae5fbda548f4b65c423b0fc2ce58c Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 22 Nov 1999 19:21:38 +0000 Subject: Patch rtems-rc-19991117-7.diff from Ralf Corsepius to convert the sample tests to automake. --- c/src/tests/samples/minimum/Makefile.am | 43 +++++++++++++++++++ c/src/tests/samples/minimum/Makefile.in | 74 --------------------------------- 2 files changed, 43 insertions(+), 74 deletions(-) create mode 100644 c/src/tests/samples/minimum/Makefile.am delete mode 100644 c/src/tests/samples/minimum/Makefile.in (limited to 'c/src/tests/samples/minimum') diff --git a/c/src/tests/samples/minimum/Makefile.am b/c/src/tests/samples/minimum/Makefile.am new file mode 100644 index 0000000000..96a9bd4901 --- /dev/null +++ b/c/src/tests/samples/minimum/Makefile.am @@ -0,0 +1,43 @@ +## +## $Id$ +## + +AUTOMAKE_OPTIONS = foreign 1.4 +ACLOCAL_AMFLAGS = -I $(RTEMS_TOPdir)/aclocal + +SAMPLE = minimum +PGM = ${ARCH}/$(SAMPLE).exe + +MANAGERS = all + +# C source names, if any, go here -- minus the .c +C_FILES = init.c +C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o) + +DOCTYPES = doc scn +DOCS = $(DOCTYPES:%=$(SAMPLE).%) + +SRCS = $(DOCS) $(C_FILES) $(H_FILES) +OBJS = $(C_O_FILES) + +PRINT_SRCS = $(DOCS) + +PGM = ${ARCH}/$(SAMPLE).exe + +include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg +include $(RTEMS_ROOT)/make/leaf.cfg +include $(top_srcdir)/sample.am + +# +# (OPTIONAL) Add local stuff here using += +# + +all-local: ${ARCH} $(TMPINSTALL_FILES) + # This test should not be executed + +${PGM}: $(OBJS) $(LINK_FILES) + $(make-exe) + +EXTRA_DIST = $(C_FILES) $(DOCS) + +include $(top_srcdir)/../../../../automake/local.am diff --git a/c/src/tests/samples/minimum/Makefile.in b/c/src/tests/samples/minimum/Makefile.in deleted file mode 100644 index d8b9c37834..0000000000 --- a/c/src/tests/samples/minimum/Makefile.in +++ /dev/null @@ -1,74 +0,0 @@ -# -# $Id$ -# - -@SET_MAKE@ -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -top_builddir = .. -subdir = minimum - -RTEMS_ROOT = @RTEMS_ROOT@ -PROJECT_ROOT = @PROJECT_ROOT@ - -VPATH = @srcdir@ - -SAMPLE = minimum -PGM = ${ARCH}/$(SAMPLE).exe - -MANAGERS = all - -# C source names, if any, go here -- minus the .c -C_PIECES = init -C_FILES = $(C_PIECES:%=%.c) -C_O_FILES = $(C_PIECES:%=${ARCH}/%.o) - -H_FILES = - -DOCTYPES = doc scn -DOCS = $(DOCTYPES:%=$(SAMPLE).%) - -SRCS = $(DOCS) $(C_FILES) $(H_FILES) -OBJS = $(C_O_FILES) - -PRINT_SRCS = $(DOCS) - -PGM = ${ARCH}/$(SAMPLE).exe - -include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg -include $(RTEMS_ROOT)/make/leaf.cfg - -INSTALL_CHANGE = @INSTALL_CHANGE@ -PACKHEX = @PACKHEX@ - -# -# (OPTIONAL) Add local stuff here using += -# - -DEFINES += -CPPFLAGS += -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' -# - -CLEAN_ADDITIONS += -CLOBBER_ADDITIONS += - -all: ${ARCH} $(SRCS) $(PGM) - # This test should not be executed - -${PGM}: $(OBJS) $(LINK_FILES) - $(make-exe) - -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - cd $(top_builddir) \ - && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status -- cgit v1.2.3