summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBambu <arewehuman@hotmail.com>2016-08-25 22:04:12 -0400
committerBambu <arewehuman@hotmail.com>2016-08-25 22:04:12 -0400
commit5a42aec73a77a3a54baf054cde9047533709be31 (patch)
tree66c875b90a8d89cb323aa6b9e329a851098a39f6 /Makefile
parent3e5ce8d9f21378cd6453b6d5106a1acce675ffe1 (diff)
Removed dynamic linking. Added c++ version of arm-syscall python plugin. Renamed it since it works for more than just arm
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 3 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index c1e159d3..9eb2d52a 100644
--- a/Makefile
+++ b/Makefile
@@ -17,28 +17,20 @@ OBJECTS = $(SOURCES:.cpp=.o)
CFLAGS := -c -fPIC -O2 -pipe -std=gnu++11 -Wall -W
ifeq ($(UNAME_S),Darwin)
- CC := $(shell xcrun -f clang++)
+ CC := $(shell xcrun -f g++)
AR := $(shell xcrun -f ar)
CFLAGS += -stdlib=libc++
-all: $(TARGET).a $(TARGET).dylib
else
CC := g++
AR := ar
-all: $(TARGET).a $(TARGET).so
endif
+all: $(TARGET).a
+
$(TARGET).a: $(OBJECTS)
@mkdir -p $(TARGETDIR)
$(AR) rcs $@ $^
-$(TARGET).so: $(OBJECTS)
- @mkdir -p $(TARGETDIR)
- $(CC) -shared $(LIB) $(JSONCPP) $^ -o $@
-
-$(TARGET).dylib: $(OBJECTS)
- $(CC) -dynamiclib $(LIB) $(JSONCPP) $^ -o $@
- install_name_tool -id @loader_path/$(TARGETNAME).dylib -add_rpath @loader_path/.. $@
-
%.o: %.cpp
@echo " Compiling... $@ $<"
$(CC) $(CFLAGS) $(INC) -c -o $@ $<