diff options
author | Jennifer Averett <jennifer.averett@oarcorp.com> | 2012-05-16 10:21:12 -0500 |
---|---|---|
committer | Jennifer Averett <jennifer.averett@oarcorp.com> | 2012-05-16 10:21:12 -0500 |
commit | 596a7ea5d659552f14be68fab844a8ec5b8fe9c8 (patch) | |
tree | 86dca500a49886f62e2ea30b3de893b19879bc8a /testsuite/timeout01 | |
parent | Added Nic status section to documention. (diff) | |
download | rtems-libbsd-596a7ea5d659552f14be68fab844a8ec5b8fe9c8.tar.bz2 |
Standardized Makefiles so that i386 would build correctly.
Diffstat (limited to 'testsuite/timeout01')
-rw-r--r-- | testsuite/timeout01/Makefile | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/testsuite/timeout01/Makefile b/testsuite/timeout01/Makefile index 6e38da14..fb306b59 100644 --- a/testsuite/timeout01/Makefile +++ b/testsuite/timeout01/Makefile @@ -1,29 +1,28 @@ include ../../config.inc +APP = timeout01 + include $(RTEMS_MAKEFILE_PATH)/Makefile.inc include $(RTEMS_CUSTOM) include $(PROJECT_ROOT)/make/leaf.cfg -APP_PIECES = init timeout_test timeout_helper - -APP_O_FILES = $(APP_PIECES:%=%.o) -APP_DEP_FILES = $(APP_PIECES:%=%.dep) +C_PIECES = init timeout_test timeout_helper +C_O_FILES = $(C_PIECES:%=%.o) +C_DEP_FILES = $(C_PIECES:%=%.dep) -APP = app.exe +OBJS= $(C_O_FILES) DEPFLAGS = -MT $@ -MD -MP -MF $*.dep AM_CPPFLAGS += -I $(INSTALL_BASE)/include -I. +CLEAN_ADDITIONS += $(APP).exe $(APP).map $(C_DEP_FILES) -CFLAGS += $(DEPFLAGS) $(GCCFLAGS) $(AM_CPPFLAGS) -Wno-unused -Wl,-Map,app.map +CFLAGS += $(DEPFLAGS) $(GCCFLAGS) $(AM_CPPFLAGS) -Wno-unused -Wl,-Map,$(APP).map LINK_LIBS += $(INSTALL_BASE)/libbsd.a -all: $(APP) - -$(APP): $(APP_O_FILES) - $(CC) $(CFLAGS) $^ $(LINK_LIBS) -o $(APP) +all: $(APP).exe -clean: - rm -f app.map $(APP) $(APP_O_FILES) $(APP_DEP_FILES) +$(APP).exe: $(C_O_FILES) + $(make-exe) --include $(APP_DEP_FILES) +-include $(C_DEP_FILES) |