[rtems-libbsd commit] timeout - Use standard Makefile template

Joel Sherrill joel at rtems.org
Thu May 17 19:53:05 UTC 2012


Module:    rtems-libbsd
Branch:    master
Commit:    4bc83af749414cf99ccafa1f325d528be007c8a3
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=4bc83af749414cf99ccafa1f325d528be007c8a3

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Thu May 17 14:56:15 2012 -0500

timeout - Use standard Makefile template

---

 testsuite/timeout01/Makefile |   33 ++++++++++++++++-----------------
 1 files changed, 16 insertions(+), 17 deletions(-)

diff --git a/testsuite/timeout01/Makefile b/testsuite/timeout01/Makefile
index fb306b5..78a4b7e 100644
--- a/testsuite/timeout01/Makefile
+++ b/testsuite/timeout01/Makefile
@@ -1,28 +1,27 @@
 include ../../config.inc
 
 APP = timeout01
+PGM=${ARCH}/$(APP).exe
 
-include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
-include $(RTEMS_CUSTOM)
-include $(PROJECT_ROOT)/make/leaf.cfg
-
-C_PIECES = init timeout_test timeout_helper
-C_O_FILES = $(C_PIECES:%=%.o)
-C_DEP_FILES = $(C_PIECES:%=%.dep)
-
-OBJS= $(C_O_FILES)
+# optional managers required
+MANAGERS=all
 
-DEPFLAGS = -MT $@ -MD -MP -MF $*.dep
-AM_CPPFLAGS += -I $(INSTALL_BASE)/include -I.
-CLEAN_ADDITIONS += $(APP).exe $(APP).map $(C_DEP_FILES)
+# C source names
+C_FILES = init.c timeout_helper.c timeout_test.c
+C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
 
+AM_CPPFLAGS += -I $(INSTALL_BASE)/include
+LINK_LIBS += $(INSTALL_BASE)/libbsd.a ${REL_ARGS}
 CFLAGS += $(DEPFLAGS) $(GCCFLAGS) $(AM_CPPFLAGS) -Wno-unused -Wl,-Map,$(APP).map
 
-LINK_LIBS += $(INSTALL_BASE)/libbsd.a
+include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
+include $(RTEMS_CUSTOM)
+include $(PROJECT_ROOT)/make/leaf.cfg
 
-all: $(APP).exe
+OBJS= $(C_O_FILES)
+CLEAN_ADDITIONS += $(APP).map *.dep
 
-$(APP).exe: $(C_O_FILES)
-	$(make-exe)
+all:    ${ARCH} $(PGM)
 
--include $(C_DEP_FILES)
+$(PGM): $(OBJS)
+	-$(make-exe)




More information about the vc mailing list