-
Notifications
You must be signed in to change notification settings - Fork 53
/
Makefile.in
37 lines (28 loc) · 1.09 KB
/
Makefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
CXX = @CXX@ @CXXFLAGS@ -Iinclude
LDFLAGS = @LDFLAGS@ -Llib
EXTRA_LIBRARIES = @EXTRA_LIBRARIES@
INSTALL_BINDIR = @prefix@@bindir@
INSTALL_LIBDIR = @prefix@@libdir@
INSTALL_INCLUDEDIR = @prefix@@includedir@
all: cppsp_standalone
LIBCPPSP_SOURCES = common.C page.C stringutils.C cppsp_cpoll.C @EXTRA_SOURCES@
libcppsp.so: $(LIBCPPSP_SOURCES) cpoll/libcpoll.so
$(CXX) $(LIBCPPSP_SOURCES) -o $@ $(LDFLAGS) $(EXTRA_LIBRARIES) --shared -lcpoll -lpthread -ldl
cppsp_standalone: cppsp_standalone.C libcppsp.so
$(CXX) cppsp_standalone.C -o $@ $(LDFLAGS) -lcpoll -lcppsp -lpthread
# dependencies
cpoll/libcpoll.so: cpoll/Makefile
$(MAKE) -C cpoll libcpoll.so
cpoll/Makefile:
cd cpoll && autoreconf && ./configure --prefix @prefix@ --bindir @bindir@ --libdir @libdir@ --includedir @includedir@
install: cppsp_standalone
$(MAKE) -C cpoll install
# headers
install -d $(INSTALL_INCLUDEDIR)/cppsp/
install -m 644 include/cppsp/* $(INSTALL_INCLUDEDIR)/cppsp/
# binaries
install libcppsp.so $(INSTALL_LIBDIR)/
install cppsp_standalone $(INSTALL_BINDIR)/
clean:
rm -f *.so cppsp_standalone
$(MAKE) -C cpoll clean