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 (100 lines) | stat: -rw-r--r-- 1,941 bytes parent folder | download | duplicates (3)
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#
# Makefile for cheops
#
#

CFLAGS = @CFLAGS@
CPPFLAGS = @CPPFLAGS@
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

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@


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

# Debug support
CFLAGS+=@DEBUGCFLAG@

# Use for nmap module:
#OBJS+=cheops.o network.o tcpip-mod.o queso-mod.o nmap-mod.o services.o 
OBJS+=cheops.o network.o tcpip-mod.o queso-mod.o services.o \
     halfscan-mod.o domain.o map.o options.o about.o gpl.o edit.o \
     layout.o morescan.o probe.o fileio.o plugins.o monitor.o \
     logger.o status.o @GTKLINK@

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

all: cheops plugs

cheops: $(OBJS)
	$(CC) -Wl,-export-dynamic -o cheops $(CFLAGS) $(OBJS) $(LIBS)

clean:
	rm -f $(OBJS) cheops gpl.c *~ 
	( cd plugins && make clean )

plugs: 
	( cd plugins && make all )

distclean: clean
	rm -f Makefile config.status config.cache config.h
	( cd plugins && make distclean )

gpl.c: COPYING
	sh generate-gpl.sh >gpl.c

install: cheops plugs
ifdef DEFAULT_PATH
	mkdir -p $(DEFAULT_PATH)
	mkdir -p $(LIB_PATH)
	$(INSTALL) -d $(DEFAULT_PATH)
	$(INSTALL) -d $(LIB_PATH)
	$(INSTALL) -d $(bindir)
	$(INSTALL) -m 644 pixmaps/*.xpm services.conf cheops.conf $(DEFAULT_PATH)
	$(INSTALL) -s -m 755 cheops $(bindir)/
	( cd plugins && make install )
else
	echo "No Default Path in Makefile"
endif

.PHONEY: all devclean