From 4bc83af749414cf99ccafa1f325d528be007c8a3 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 17 May 2012 14:56:15 -0500 Subject: timeout - Use standard Makefile template --- testsuite/timeout01/Makefile | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/testsuite/timeout01/Makefile b/testsuite/timeout01/Makefile index fb306b59..78a4b7ed 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) -- cgit v1.2.3