aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Bucur <stefanb@zytor.com>2008-06-06 15:47:54 +0300
committerStefan Bucur <stefanb@zytor.com>2008-06-06 15:47:54 +0300
commita0fd2a522fbfb30573bb2e626453814e03eac36b (patch)
tree7b952b824daea3e1bb33e1f190544f7b4ec8edc6
parent114e8bff58bb9fa76fa6c60b919d4cb90614cc25 (diff)
downloadsyslinux-elf-a0fd2a522fbfb30573bb2e626453814e03eac36b.tar.gz
syslinux-elf-a0fd2a522fbfb30573bb2e626453814e03eac36b.tar.xz
syslinux-elf-a0fd2a522fbfb30573bb2e626453814e03eac36b.zip
Created a makefile and a test application.
-rw-r--r--elf/Makefile37
-rw-r--r--elf/README12
-rw-r--r--elf/elf.h6
-rw-r--r--elf/elftest.c5
4 files changed, 59 insertions, 1 deletions
diff --git a/elf/Makefile b/elf/Makefile
new file mode 100644
index 00000000..3c793d65
--- /dev/null
+++ b/elf/Makefile
@@ -0,0 +1,37 @@
+## License would go here
+
+# Tools
+
+CC = gcc
+
+RM = rm -f
+
+
+# Build options
+
+CFLAGS = -Wall
+
+LDFLAGS =
+
+
+# Generated files
+
+# Test executable name
+TESTPROG = elftest
+
+
+# Make targets
+.PHONY: all test clean
+
+all: test
+
+test: $(TESTPROG)
+
+$(TESTPROG): elftest.o
+ $(CC) -o $@ $^
+
+
+clean:
+ -$(RM) *.o
+ -$(RM) $(TESTPROG)
+
diff --git a/elf/README b/elf/README
index 87637d63..324a8c25 100644
--- a/elf/README
+++ b/elf/README
@@ -11,4 +11,14 @@ Initial Development
As the ELF modules handling code matures, building and testing will be done
separately from the main SYSLINUX building flow. I have created a Makefile
target that build an user space executable that tests the ELF loading code on
-a given ELF object. \ No newline at end of file
+a given ELF object.
+
+Run:
+
+ make test
+
+in the current directory to build the test application, then run:
+
+ ./elftest
+
+to perform the testing.
diff --git a/elf/elf.h b/elf/elf.h
new file mode 100644
index 00000000..feadf661
--- /dev/null
+++ b/elf/elf.h
@@ -0,0 +1,6 @@
+// License would go here
+
+#ifndef ELF_H_
+#define ELF_H_
+
+#endif /*ELF_H_*/
diff --git a/elf/elftest.c b/elf/elftest.c
new file mode 100644
index 00000000..10ef2308
--- /dev/null
+++ b/elf/elftest.c
@@ -0,0 +1,5 @@
+#include "elf.h"
+
+int main(int argc, char **argv) {
+ return 0;
+}