From 308caf1f5b3f8f02ebb44c0c43a838e0709200a1 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Fri, 10 Jul 2020 23:36:26 -0400 Subject: Switch build system to cmake --- examples/breakpoint/Makefile | 57 -------------------------------------------- 1 file changed, 57 deletions(-) delete mode 100644 examples/breakpoint/Makefile (limited to 'examples/breakpoint/Makefile') diff --git a/examples/breakpoint/Makefile b/examples/breakpoint/Makefile deleted file mode 100644 index d85b63e5..00000000 --- a/examples/breakpoint/Makefile +++ /dev/null @@ -1,57 +0,0 @@ -# Path to prebuilt libbinaryninjaapi.a -BINJA_API_A := ../../bin/libbinaryninjaapi.a - -# Path to binaryninjaapi.h and json -INC := -I../../ - -UNAME_S := $(shell uname -s) -ifeq ($(UNAME_S),Linux) - # Path to binaryninja install - BINJAPATH := $(HOME)/binaryninja -else - BINJAPATH := /Applications/Binary\ Ninja.app/Contents/MacOS -endif - -SRCDIR := src -BUILDDIR := build -TARGETDIR := bin - -TARGETNAME := breakpoint -TARGET := $(TARGETDIR)/$(TARGETNAME) -INSTALLBINDIR := $(BINJAPATH)/plugins/ - -SRCEXT := cpp -SOURCES := $(shell find $(SRCDIR) -type f -name *.$(SRCEXT)) -OBJECTS := $(patsubst $(SRCDIR)/%,$(BUILDDIR)/%,$(SOURCES:.$(SRCEXT)=.o)) - -LIBS := -L $(BINJAPATH) -lbinaryninjacore -CFLAGS := -c -std=gnu++11 -O2 -Wall -W -fPIC -pipe -ifeq ($(UNAME_S),Linux) - CC := g++ -all: $(TARGET).so -else - CC := $(shell xcrun -f clang++) - CFLAGS += -arch x86_64 -pipe -stdlib=libc++ -mmacosx-version-min=10.7 -all: $(TARGET).dylib -endif - -$(TARGET).so: $(OBJECTS) - @mkdir -p $(TARGETDIR) - $(CC) -shared $^ $(BINJA_API_A) $(LIBS) -o $@ - -$(TARGET).dylib: $(OBJECTS) - @mkdir -p $(TARGETDIR) - $(CC) -dynamiclib $^ $(BINJA_API_A) $(LIBS) -o $@ - install_name_tool -id @loader_path/$(TARGETNAME).dylib -add_rpath @loader_path/.. $@ - -$(BUILDDIR)/%.o: $(SRCDIR)/%.$(SRCEXT) - @mkdir -p $(BUILDDIR) - $(CC) $(CFLAGS) $(INC) -c -o $@ $< - -clean: - $(RM) -r $(BUILDDIR) $(TARGETDIR) - -install: - cp $(TARGET) $(INSTALLBINDIR) - -.PHONY: clean -- cgit v1.3.1