-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.in
45 lines (30 loc) · 1.07 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
38
39
40
41
# Copyright (c) 2012 Vasily i. Redkin <[email protected]>
# License: MIT (See LICENSE.txt or http://www.opensource.org/licenses/MIT)
BINS = supervisor
DESTDIR ?=
PREFIX ?= /usr/local
CFLAGS=-DSYSCONFDIR=\"@sysconfdir@\" @DEFS@
all: .depend ${BINS}
.SUFFIXES: .cxx .so
.c.o:
$(CC) -g -Wall -pipe -c $(CFLAGS) -o $*.o $<
.cxx.o:
$(CXX) -g -Wall -pipe -c $(CFLAGS) -o $*.o $<
.o.so:
$(CC) -g -Wall -pipe -shared -nostartfiles -nostdlib -o $@ $^
supervisor: supervisor.o family.o childprocess.o eventdispatcher.o config.o logger.o daemonize.o pidfile.o
$(CXX) -g -Wall -pipe -o $@ $^
#---------------------------------------------------------------------------
.PHONY: clean
clean:
-rm -f ${BINS} *.o .depend core
install: supervisor
install -m 755 -d ${DESTDIR}${PREFIX}/bin
install -m 555 supervisor ${DESTDIR}${PREFIX}/bin
install -m 755 -d ${DESTDIR}${PREFIX}/share/doc/supervisor
install -m 644 README LICENSE.txt supervisor.conf ${DESTDIR}${PREFIX}/share/doc/supervisor
.depend:
$(CC) -MM -MG *.cxx >.depend
ifeq (.depend,$(wildcard .depend))
include .depend
endif