From b2bfe2bb1c6e6a165b2f969a8615ad99e7e41e99 Mon Sep 17 00:00:00 2001 From: Pedro Flemming Date: Sat, 16 Jan 2016 12:36:45 +0100 Subject: [PATCH] build fixes for OSX and clang. added make install task --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 92e97c3..5103d04 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ SRCPARSER = src/parser # files PARSERFILES = $(SRCPARSER)/bison_parser.cpp $(SRCPARSER)/flex_lexer.cpp -LIBCPP = $(shell find $(SRC)/ -name '*.cpp' -not -path "$(SRCPARSER)/*") $(SRCPARSER)/bison_parser.cpp $(SRCPARSER)/flex_lexer.cpp +LIBCPP = $(shell find $(SRC) -name '*.cpp' -not -path "$(SRCPARSER)/*") $(SRCPARSER)/bison_parser.cpp $(SRCPARSER)/flex_lexer.cpp LIBOBJ = $(LIBCPP:%.cpp=%.o) TESTCPP = $(shell find test/lib/ -name '*.cpp') @@ -14,6 +14,7 @@ CC = g++ CFLAGS = -std=c++11 -Wall -fPIC LIBFLAGS = -shared TARGET = libsqlparser.so +INSTALL = /usr/local CTESTFLAGS = -Wall -Isrc/ -Itest/ -L./ -std=c++11 @@ -44,6 +45,9 @@ cleanparser: cleanall: clean cleanparser +install: + cp $(TARGET) $(INSTALL)/lib/$(TARGET) + ############ ### Test ### ############