1
LIBS = @LIBS@ @PKG_LIBS@ @PKG_CFLAGS@
4
exec_prefix = @exec_prefix@
5
CFLAGS = @CFLAGS@ @PKG_CFLAGS@
8
docdir = @prefix@/doc/ctrlproxy
9
modulesdir = @libdir@/ctrlproxy
10
includedir = @includedir@
11
man1dir = @mandir@/man1
12
man5dir = @mandir@/man5
14
CFLAGS+=-ansi -Wall -DMODULESDIR=\"$(modulesdir)\"
15
OBJS = server.o line.o main.o state.o util.o transport.o hooks.o linestack.o
23
$(CC) $(LIBS) -rdynamic -o $@ $(OBJS)
25
printstats: printstats.o
31
install: all install-dirs install-doc install-bin install-mods
33
$(INSTALL) -d $(DESTDIR)$(bindir)
34
$(INSTALL) -d $(DESTDIR)$(man1dir)
35
$(INSTALL) -d $(DESTDIR)$(man5dir)
36
$(INSTALL) -d $(DESTDIR)$(includedir)
37
$(INSTALL) -d $(DESTDIR)$(modulesdir)
38
$(INSTALL) -d $(DESTDIR)$(docdir)
39
$(MAKE) -C doc install
42
$(INSTALL) ctrlproxy $(DESTDIR)$(bindir)
45
$(INSTALL) ctrlproxy.h $(DESTDIR)$(includedir)
46
$(INSTALL) AUTHORS $(DESTDIR)$(docdir)
47
$(INSTALL) COPYING $(DESTDIR)$(docdir)
48
$(INSTALL) TODO $(DESTDIR)$(docdir)
51
$(MAKE) -C mods install
54
rm -f *.o ctrlproxy printstats *~
59
rm -f Makefile build config.h ctrlproxy.pc ctrlproxy.spec *.log
60
rm -rf autom4te.cache/ config.log
61
$(MAKE) -C mods distclean
62
$(MAKE) -C doc distclean