aboutsummaryrefslogtreecommitdiffstats
path: root/bfd/makefile
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2017-10-28 22:01:54 +0000
committerbloodstalker <thabogre@gmail.com>2017-10-28 22:01:54 +0000
commitf4ea67f52e35cd1a332e5c7032b7a47ff0f603ce (patch)
tree32bb177efd1065a319ea654f4ddfd6f4eac6e929 /bfd/makefile
parentplaying around with libbfd (diff)
downloadmutator-f4ea67f52e35cd1a332e5c7032b7a47ff0f603ce.tar.gz
mutator-f4ea67f52e35cd1a332e5c7032b7a47ff0f603ce.zip
palying around with executbales and sos
Diffstat (limited to 'bfd/makefile')
-rw-r--r--bfd/makefile21
1 files changed, 13 insertions, 8 deletions
diff --git a/bfd/makefile b/bfd/makefile
index 7cb4918..2720678 100644
--- a/bfd/makefile
+++ b/bfd/makefile
@@ -1,15 +1,15 @@
##################################VARS#################################
CC=clang
-CC_FLAGS=
+CC_FLAGS=-fpic
LD_FLAGS= -l bfd
TARGET=main
##################################RULES################################
.DEFAULT:all
-.PHONY:all clean help $(TARGET)
+.PHONY:all clean help $(TARGET) $(TARGET).so test
-all:$(TARGET)
+all:$(TARGET) $(TARGET).so test
.c.o:
$(CC) $(CC_FLAGS) -c $< -o $@
@@ -17,14 +17,19 @@ all:$(TARGET)
$(TARGET): $(TARGET).o
$(CC) $^ $(LD_FLAGS) -o $@
+$(TARGET).so: $(TARGET).o
+ $(CC) $^ $(LD_FLAGS) -shared -o $@
+
+test:
+ $(MAKE) -C ./test
+
clean:
- rm -f *.o *~ $(TARGET)
+ rm -f *.o *~ $(TARGET) $(TARGET).so
+ $(MAKE) -C ./test clean
+
help:
- @echo 'all builds the daemon, the server and the client. all is the default.'
- @echo 'mutatord builds the daemon with the server'
- @echo 'mutatorc builds the client'
- @echo 'mutators builds the standalone server'
+ @echo 'all builds so and exe. all is the default.'
@echo 'clean runs clean.'
@echo 'help runs help.'