diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-03-21 12:45:18 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-03-21 12:45:37 -0500 |
commit | 71141b3aa8cc05012bd0c0e87400a92fbb79cd6d (patch) | |
tree | 3590becdee64c94d4a86d19eb5c5c95fd84a5f6d /testsuite/usb01/Makefile | |
parent | Add kthread_suspend name mapping (diff) | |
download | rtems-libbsd-71141b3aa8cc05012bd0c0e87400a92fbb79cd6d.tar.bz2 |
usb01 builds but does not link
Diffstat (limited to 'testsuite/usb01/Makefile')
-rw-r--r-- | testsuite/usb01/Makefile | 48 |
1 files changed, 30 insertions, 18 deletions
diff --git a/testsuite/usb01/Makefile b/testsuite/usb01/Makefile index 2d97767d..6f5aae94 100644 --- a/testsuite/usb01/Makefile +++ b/testsuite/usb01/Makefile @@ -1,28 +1,40 @@ -# -# $Id$ -# include ../../config.inc -PGM=${ARCH}/usb01.exe +include $(RTEMS_MAKEFILE_PATH)/Makefile.inc +include $(RTEMS_CUSTOM) +include $(PROJECT_ROOT)/make/leaf.cfg -# optional managers required -MANAGERS=all +APP_PIECES = init \ + test-file-system -# C source names -C_FILES = init.c -C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o) +APP_O_FILES = $(APP_PIECES:%=%.o) +APP_DEP_FILES = $(APP_PIECES:%=%.dep) -AM_CPPFLAGS += -I $(INSTALL_BASE)/include -LINK_LIBS += $(INSTALL_BASE)/libbsd.a -Wl,-Map=jennifer.txt +APP = app.exe -include $(RTEMS_MAKEFILE_PATH)/Makefile.inc -include $(RTEMS_CUSTOM) -include $(PROJECT_ROOT)/make/leaf.cfg +DEPFLAGS = -MT $@ -MD -MP -MF $*.dep +AM_CPPFLAGS += -I $(INSTALL_BASE)/include -I. + +CFLAGS += $(DEPFLAGS) $(GCCFLAGS) $(AM_CPPFLAGS) -Wno-unused + +LINK_LIBS += $(INSTALL_BASE)/libbsd.a + +CXXFLAGS += $(CFLAGS) + +all: $(APP) + +$(APP): $(APP_O_FILES) + $(CXX) $(CXXFLAGS) $^ $(LINK_LIBS) -o $(APP) + +clean: + rm -f $(APP_O_FILES) $(APP_DEP_FILES) -OBJS= $(C_O_FILES) +dist: + cd .. && tar cjf usb-demo/usb-demo.tar.bz2 \ + `find usb-demo -name '*.h' -o -name '*.c'` usb-demo/Makefile -all: ${ARCH} $(PGM) +%.dep: + touch $@ -$(PGM): $(OBJS) - $(make-exe) +include $(APP_DEP_FILES) |