From 5a42aec73a77a3a54baf054cde9047533709be31 Mon Sep 17 00:00:00 2001 From: Bambu Date: Thu, 25 Aug 2016 22:04:12 -0400 Subject: Removed dynamic linking. Added c++ version of arm-syscall python plugin. Renamed it since it works for more than just arm --- Makefile | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'Makefile') 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 $@ $< -- cgit v1.3.1