summaryrefslogtreecommitdiff
path: root/payloads/libpayload/tests/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'payloads/libpayload/tests/Makefile')
-rw-r--r--payloads/libpayload/tests/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/payloads/libpayload/tests/Makefile b/payloads/libpayload/tests/Makefile
new file mode 100644
index 0000000000..9728722f3e
--- /dev/null
+++ b/payloads/libpayload/tests/Makefile
@@ -0,0 +1,13 @@
+CC=gcc -g -m32
+INCLUDES=-I. -I../include -I../include/x86
+TARGETS=cbfs-x86-test
+
+cbfs-x86-test: cbfs-x86-test.c ../arch/x86/rom_media.c ../libcbfs/ram_media.c ../libcbfs/cbfs.c
+ $(CC) -o $@ $^ $(INCLUDES)
+
+
+all: $(TARGETS)
+
+run: all
+ for i in $(TARGETS); do ./$$i; done
+