diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-05-17 14:56:15 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-05-17 14:56:15 -0500 |
commit | 4bc83af749414cf99ccafa1f325d528be007c8a3 (patch) | |
tree | 0fa02ffa21746b92982fc02c4be6c13149104e4f | |
parent | Resolved issues with pc386 build. (diff) | |
download | rtems-libbsd-4bc83af749414cf99ccafa1f325d528be007c8a3.tar.bz2 |
timeout - Use standard Makefile template
-rw-r--r-- | testsuite/timeout01/Makefile | 33 |
1 files 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) |