summaryrefslogtreecommitdiffstats
path: root/testsuite/swi01/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/swi01/Makefile')
-rw-r--r--testsuite/swi01/Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/testsuite/swi01/Makefile b/testsuite/swi01/Makefile
new file mode 100644
index 00000000..dd7c6882
--- /dev/null
+++ b/testsuite/swi01/Makefile
@@ -0,0 +1,29 @@
+include ../../config.inc
+
+include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
+include $(RTEMS_CUSTOM)
+include $(PROJECT_ROOT)/make/leaf.cfg
+
+APP_PIECES = init swi_test
+
+APP_O_FILES = $(APP_PIECES:%=%.o)
+APP_DEP_FILES = $(APP_PIECES:%=%.dep)
+
+APP = app.exe
+
+DEPFLAGS = -MT $@ -MD -MP -MF $*.dep
+AM_CPPFLAGS += -I $(INSTALL_BASE)/include -I.
+
+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)
+
+clean:
+ rm -f app.map $(APP) $(APP_O_FILES) $(APP_DEP_FILES)
+
+-include $(APP_DEP_FILES)