summaryrefslogtreecommitdiffstats
path: root/test/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'test/Makefile')
-rw-r--r--test/Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/Makefile b/test/Makefile
new file mode 100644
index 0000000..2849b40
--- /dev/null
+++ b/test/Makefile
@@ -0,0 +1,28 @@
+
+LDFLAGS+=-L.
+
+lib-test-common.so: test/lib-test-common.o
+ $(QUIET_LD)$(CC) $(CFLAGS) -fPIC -shared $(LDFLAGS) -o $@ $^
+
+lib-test-args.so: test/lib-test-args.o
+ $(QUIET_LD)$(CC) $(CFLAGS) -fPIC -shared $(LDFLAGS) -o $@ $^
+
+test-common: test/test-lib.o test/test-common.o
+ $(QUIET_LD)$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ lib-test-common.so
+
+test-args: test/test-lib.o test/test-args.o test/sysdeps/$(CONFIG_SYSDEP_DIR)/test-args.o
+ $(QUIET_LD)$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ lib-test-args.so
+
+OBJS+=test/test-lib.o
+
+OBJS+=\
+ test/lib-test-args.o \
+ test/test-args.o \
+ test/sysdeps/$(CONFIG_SYSDEP_DIR)/test-args.o
+
+OBJS+=\
+ test/lib-test-common.o \
+ test/test-common.o
+
+PROGRAMS+=lib-test-common.so test-common
+PROGRAMS+=lib-test-args.so test-args