File: Makefile

package info (click to toggle)
snmptrapfmt 1.14
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 176 kB
  • ctags: 87
  • sloc: ansic: 1,330; sh: 63; makefile: 39
file content (40 lines) | stat: -rwxr-xr-x 808 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
# Makefile for snmptrapfmt
#

TARGETS=	snmptrapfmthdlr snmptrapfmt
MANPAGES=	snmptrapfmthdlr.8 snmptrapfmt.8
CONFFILES=	snmptrapfmt.conf
DEFS=		-I /usr/include/ucd-snmp -DSTDC_HEADERS -DDEBUG

# Compilation parameters:

CFLAGS= -O2 -g -Wall $(DEFS)
LIBS=	#-lsnmp -lieee -lnsl

# You should not need to change anything below this line.

all: $(TARGETS)

package: clean
	dpkg-buildpackage -us -uc

deb: clean
	debuild binary
  
snmptrapfmt:    snmptrapfmt.o log.o
	${CC} -g -o $@ snmptrapfmt.o log.o ${LIBS}

snmptrapfmthdlr:    snmptrapfmthdlr.o log.o
	${CC} -g -o $@ snmptrapfmthdlr.o log.o ${LIBS}

clean:
	rm -f core *.o *.bak ${TARGETS}

clobber: clean
	rm -f $(TARGETS)

install:
	make
	cp ${TARGETS} ${DESTDIR}/usr/sbin
	cp ${MANPAGES} ${DESTDIR}/usr/share/man/man8
	cp $(CONFFILES) $(DESTDIR)/etc/snmp