diff options
author | bloodstalker <thabogre@gmail.com> | 2017-10-28 22:04:30 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2017-10-28 22:04:30 +0000 |
commit | 1eccffca720cf28cc6e0fba9fd087ccd5332c95f (patch) | |
tree | 5026dd690c6ad101d854b20a1c955d3d06f70013 | |
parent | palying around with executbales and sos (diff) | |
download | mutator-1eccffca720cf28cc6e0fba9fd087ccd5332c95f.tar.gz mutator-1eccffca720cf28cc6e0fba9fd087ccd5332c95f.zip |
forgot this one
-rw-r--r-- | bfd/test/makefile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/bfd/test/makefile b/bfd/test/makefile new file mode 100644 index 0000000..ca1eab1 --- /dev/null +++ b/bfd/test/makefile @@ -0,0 +1,30 @@ + +##################################VARS################################# +CC=clang +CC_FLAGS=-fpic +LD_FLAGS= -l bfd +TARGET=test +##################################RULES################################ +.DEFAULT:all + +.PHONY:all clean help $(TARGET) + +all:$(TARGET) $(TARGET).so + +.c.o: + $(CC) $(CC_FLAGS) -c $< -o $@ + +$(TARGET): $(TARGET).o + $(CC) $^ $(LD_FLAGS) -o $@ + +$(TARGET).so: $(TARGET).o + $(CC) $^ $(LD_FLAGS) -shared -o $@ + +clean: + rm -f *.o *~ $(TARGET) $(TARGET).so + +help: + @echo 'all builds so and exe. all is the default.' + @echo 'clean runs clean.' + @echo 'help runs help.' + |