build fixes for OSX and clang. added make install task
This commit is contained in:
parent
8b59940fa3
commit
b2bfe2bb1c
6
Makefile
6
Makefile
|
@ -5,7 +5,7 @@ SRCPARSER = src/parser
|
||||||
|
|
||||||
# files
|
# files
|
||||||
PARSERFILES = $(SRCPARSER)/bison_parser.cpp $(SRCPARSER)/flex_lexer.cpp
|
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)
|
LIBOBJ = $(LIBCPP:%.cpp=%.o)
|
||||||
TESTCPP = $(shell find test/lib/ -name '*.cpp')
|
TESTCPP = $(shell find test/lib/ -name '*.cpp')
|
||||||
|
|
||||||
|
@ -14,6 +14,7 @@ CC = g++
|
||||||
CFLAGS = -std=c++11 -Wall -fPIC
|
CFLAGS = -std=c++11 -Wall -fPIC
|
||||||
LIBFLAGS = -shared
|
LIBFLAGS = -shared
|
||||||
TARGET = libsqlparser.so
|
TARGET = libsqlparser.so
|
||||||
|
INSTALL = /usr/local
|
||||||
|
|
||||||
CTESTFLAGS = -Wall -Isrc/ -Itest/ -L./ -std=c++11
|
CTESTFLAGS = -Wall -Isrc/ -Itest/ -L./ -std=c++11
|
||||||
|
|
||||||
|
@ -44,6 +45,9 @@ cleanparser:
|
||||||
|
|
||||||
cleanall: clean cleanparser
|
cleanall: clean cleanparser
|
||||||
|
|
||||||
|
install:
|
||||||
|
cp $(TARGET) $(INSTALL)/lib/$(TARGET)
|
||||||
|
|
||||||
############
|
############
|
||||||
### Test ###
|
### Test ###
|
||||||
############
|
############
|
||||||
|
|
Loading…
Reference in New Issue