aboutsummaryrefslogtreecommitdiffstats
path: root/elf/Makefile
diff options
context:
space:
mode:
authorStefan Bucur <stefanb@zytor.com>2008-06-09 17:55:57 +0300
committerStefan Bucur <stefanb@zytor.com>2008-06-09 17:55:57 +0300
commite4642a4d0fac67f22e2e63cbcaea915c507e241e (patch)
tree7457b6fd2d29401b73d4780497fb0a45a5ac3954 /elf/Makefile
parent80a1747d4b8c5149af0c6101fa5110dcda85d2fe (diff)
downloadsyslinux-elf-e4642a4d0fac67f22e2e63cbcaea915c507e241e.tar.gz
syslinux-elf-e4642a4d0fac67f22e2e63cbcaea915c507e241e.tar.xz
syslinux-elf-e4642a4d0fac67f22e2e63cbcaea915c507e241e.zip
Created the basic module infrastructure.
Diffstat (limited to 'elf/Makefile')
-rw-r--r--elf/Makefile29
1 files changed, 22 insertions, 7 deletions
diff --git a/elf/Makefile b/elf/Makefile
index 3c793d65..0cab8eab 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -1,37 +1,52 @@
## License would go here
+########
# Tools
CC = gcc
RM = rm -f
-
+################
# Build options
-CFLAGS = -Wall
+CFLAGS = -Wall -DELF_USERSPACE_TEST
LDFLAGS =
-
+##################
# Generated files
# Test executable name
TESTPROG = elftest
+# Test module name
+TESTMODULE = hello.so
+###############
# Make targets
-.PHONY: all test clean
+.PHONY: all test-prog test-module clean
+
+all: test-prog test-module
-all: test
-test: $(TESTPROG)
+# The testing user-space application
+test-prog: $(TESTPROG)
-$(TESTPROG): elftest.o
+$(TESTPROG): elftest.o elf_module.o
$(CC) -o $@ $^
+
+# The shared module to test on
+test-module: $(TESTMODULE)
+
+$(TESTMODULE): hello.o
+ $(CC) -shared -o $@ $^
+
+# Cleanup target
clean:
-$(RM) *.o
-$(RM) $(TESTPROG)
+ -$(RM) $(TESTMODULE)