diff options
Diffstat (limited to 'com32/elflink/Makefile.user')
-rw-r--r-- | com32/elflink/Makefile.user | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/com32/elflink/Makefile.user b/com32/elflink/Makefile.user new file mode 100644 index 00000000..e800d6c6 --- /dev/null +++ b/com32/elflink/Makefile.user @@ -0,0 +1,57 @@ +## Builds a simple user-space application that tests the basic functionality +## of the ELF linking routines. + +## License would go here + +######## +# Tools + +CC = gcc + +RM = rm -f + +################ +# Build options + +CFLAGS = -g3 -O0 -Wall -DELF_USERSPACE_TEST + +LDFLAGS = + +################## +# Generated files + +# Test executable name +TESTPROG = elftest + + +############### +# Make targets +.PHONY: all test-prog test-module clean + +all: test-prog test-module + + +# The testing user-space application +test-prog: $(TESTPROG) + +$(TESTPROG): elftest.o elf_module.o elf_utils.o + $(CC) -o $@ $^ + + +# The shared module to test on +test-module: hello_def.so hello_ref.so + + +hello_def.so: hello_def.o + $(CC) -shared -o $@ $^ + +hello_ref.so: hello_ref.o + $(CC) -shared -o $@ $^ + + +# Cleanup target +clean: + -$(RM) *.o + -$(RM) $(TESTPROG) + -$(RM) *.so + |