summaryrefslogtreecommitdiffstats
path: root/testsuite/usb01
diff options
context:
space:
mode:
authorJennifer Averett <jennifer.averett@oarcorp.com>2012-05-16 10:21:12 -0500
committerJennifer Averett <jennifer.averett@oarcorp.com>2012-05-16 10:21:12 -0500
commit596a7ea5d659552f14be68fab844a8ec5b8fe9c8 (patch)
tree86dca500a49886f62e2ea30b3de893b19879bc8a /testsuite/usb01
parentAdded Nic status section to documention. (diff)
downloadrtems-libbsd-596a7ea5d659552f14be68fab844a8ec5b8fe9c8.tar.bz2
Standardized Makefiles so that i386 would build correctly.
Diffstat (limited to 'testsuite/usb01')
-rw-r--r--testsuite/usb01/Makefile35
1 files changed, 12 insertions, 23 deletions
diff --git a/testsuite/usb01/Makefile b/testsuite/usb01/Makefile
index 732a4e31..8adf9c90 100644
--- a/testsuite/usb01/Makefile
+++ b/testsuite/usb01/Makefile
@@ -1,40 +1,29 @@
include ../../config.inc
+APP = usb01
+
include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
include $(RTEMS_CUSTOM)
include $(PROJECT_ROOT)/make/leaf.cfg
-APP_PIECES = init \
- test-file-system
-
-APP_O_FILES = $(APP_PIECES:%=%.o)
-APP_DEP_FILES = $(APP_PIECES:%=%.dep)
+C_PIECES = init test-file-system
+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
+CFLAGS += $(DEPFLAGS) $(GCCFLAGS) $(AM_CPPFLAGS) -Wno-unused -Wl,-Map,$(APP).map
LINK_LIBS += $(INSTALL_BASE)/libbsd.a
-CXXFLAGS += $(CFLAGS)
-
-all: $(APP)
-
-$(APP): $(APP_O_FILES)
- $(CC) $(CXXFLAGS) $^ $(LINK_LIBS) -o $(APP)
-
-clean:
- rm -f $(APP_O_FILES) $(APP_DEP_FILES)
-
-dist:
- cd .. && tar cjf usb-demo/usb-demo.tar.bz2 \
- `find usb-demo -name '*.h' -o -name '*.c'` usb-demo/Makefile
+all: $(APP).exe
-%.dep:
- touch $@
+$(APP).exe: $(C_O_FILES)
+ $(make-exe)
-include $(APP_DEP_FILES)
+-include $(C_DEP_FILES)