24 lines
431 B
Makefile
24 lines
431 B
Makefile
.POSIX:
|
||
# Even if this is unnecessary, it doesn’t hurt.
|
||
PREFIX=/usr/local
|
||
CXX=g++
|
||
CXXFLAGS=-fPIC -I$(PREFIX)/include
|
||
LDFLAGS=-L$(PREFIX)/lib
|
||
LDLIBS=-lxapian
|
||
|
||
# Dylib extensions.
|
||
ifeq ($(OS),Windows_NT)
|
||
SOEXT = dll
|
||
endif
|
||
ifeq ($(shell uname),Darwin)
|
||
SOEXT = dylib
|
||
else
|
||
SOEXT = so
|
||
endif
|
||
|
||
xapian-lite.dll: module/xapian-lite.cc
|
||
$(CXX) $< -o $@ -static -municode -lWs2_32 $(CXXFLAGS) $(LDFLAGS) $(LDLIBS)
|
||
|
||
clean:
|
||
rm -f *.so *.o
|