add mingw library names
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@590 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
ac263c0ca6
commit
ab6e52b476
1 changed files with 5 additions and 2 deletions
|
@ -1,9 +1,12 @@
|
||||||
BIN = client
|
BIN = client
|
||||||
LIB1 = libfoo.so
|
LIB1 = libfoo.so
|
||||||
LIB2 = libsingletondll.so
|
LIB2 = libsingletondll.so
|
||||||
|
#mingw names
|
||||||
|
#LIB1 = foo.dll
|
||||||
|
#LIB2 = singletondll.dll
|
||||||
CXXFLAGS = -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -O2
|
CXXFLAGS = -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -O2
|
||||||
CPPFLAGS = -I../../include -DNDEBUG
|
CPPFLAGS = -I../../include -DNDEBUG
|
||||||
LDFLAGS = -L. -L../../lib
|
LDFLAGS = -L../../lib
|
||||||
LDLIBS = -lloki
|
LDLIBS = -lloki
|
||||||
|
|
||||||
.PHONY: build clean
|
.PHONY: build clean
|
||||||
|
@ -16,7 +19,7 @@ $(LIB1): foo.cpp
|
||||||
$(CXX) --shared $(CXXFLAGS) $(CPPFLAGS) -o $(LIB1) foo.cpp
|
$(CXX) --shared $(CXXFLAGS) $(CPPFLAGS) -o $(LIB1) foo.cpp
|
||||||
|
|
||||||
$(LIB2): singletondll.cpp
|
$(LIB2): singletondll.cpp
|
||||||
$(CXX) --shared $(CXXFLAGS) $(CPPFLAGS) -o $(LIB2) singletondll.cpp $(LDFLAGS) $(LDLIBS) -lfoo
|
$(CXX) --shared $(CXXFLAGS) $(CPPFLAGS) -o $(LIB2) singletondll.cpp -L. -lfoo
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(BIN) $(LIB1) $(LIB2)
|
rm -f $(BIN) $(LIB1) $(LIB2)
|
||||||
|
|
Loading…
Add table
Reference in a new issue