File: Makefile.in

package info (click to toggle)
cheops 0.61-15.1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,272 kB
  • ctags: 1,312
  • sloc: ansic: 12,731; sh: 155; makefile: 151
file content (86 lines) | stat: -rw-r--r-- 1,402 bytes parent folder | download | duplicates (4)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#
# Makefile for cheops
#
#

CFLAGS = @CFLAGS@
LIBS = @LIBS@

CFLAGS+=-Wall

CC=@CC@

prefix = @prefix@
exec_prefix = @exec_prefix@
libdir = @libdir@
datadir = @datadir@
bindir = @bindir@
mandir = @mandir@
infodir = @infodir@

# According to the comments in install-sh, this won't work for multiple files
# if ./install-sh is what is used.
INSTALL = @INSTALL@

#Just to see what it says
THE_DEFS = @DEFS@

LIBS+=@cheops_needs_lresolv@

DEFAULT_PATH=$(datadir)/cheops

LIB_PATH=$(libdir)/cheops

CFLAGS+=-I..

ifdef DEFAULT_PATH
CFLAGS+=-DDEFAULT_PATH=\"$(DEFAULT_PATH)\"
endif

ifdef LIB_PATH
CFLAGS+=-DLIB_PATH=\"$(LIB_PATH)\"
endif

# Gnome or GTK support
CFLAGS+=@XTRACFLAGS@
LIBS+=@XTRALIBS@

# SNMP Support.
CFLAGS+=@SNMPCFLAGS@
LIBS+=@SNMPLFLAGS@

# Plugin method
CFLAGS+=@PLUGINCFLAG@
LIBS+=@PLUGINLIB@

PLUGINS=generic-connect.so vnc-connect.so http-monitor.so smtp-monitor.so \
        ftp-monitor.so ping-monitor.so dns-monitor.so

.SUFFIXES: .c .lo .so

.c.lo:
	$(CC) -fPIC $(CFLAGS) -c -o $@ $<
.lo.so:
	$(CC) -shared -o $@ $<
 

all: plugs

clean:
	rm -f $(OBJS) *.lo *.o *.so

plugs: $(PLUGINS)

distclean: clean
	rm -f Makefile config.status config.cache config.h

install: plugs
ifdef DEFAULT_PATH
	mkdir -p $(LIB_PATH)/plugins
	$(INSTALL) -d $(LIB_PATH)/plugins
	$(INSTALL) -s -m 555 $(PLUGINS) $(LIB_PATH)/plugins
else
	echo "No Default Path in Makefile"
endif

.PHONEY: all devclean