File: Makefile.in

package info (click to toggle)
totd 1.4-4.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 680 kB
  • ctags: 512
  • sloc: ansic: 5,840; sh: 2,874; perl: 116; makefile: 113
file content (79 lines) | stat: -rw-r--r-- 2,086 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
#
# Makefile for totd
#
# <$Id: Makefile.in,v 3.36 2002/02/28 11:59:47 dillema Exp $>
#

CC = gcc

# These use the standard autoconf variables, which by default are
# rooted in @prefix@

prefix=@prefix@
exec_prefix=@exec_prefix@

INSTALLDIR = @sbindir@
INSTALLLIB = @libdir@
INSTALLMAN = @mandir@
TOT_CONFIG_FILE=@sysconfdir@/totd.conf

INSTALL = /usr/bin/install

CFLAGS  = @CFLAGS@ @DEFS@  -Wall -DTOTCONF=\"$(TOT_CONFIG_FILE)\" @OPTFLAGS@ $(INCLUDEPATH)

# When debugging is enabled by --enable-malloc-debug flag to the configure
# script, the @DBMALLOC@ substitution will contain the empty string, thus
# enabling the dbmalloc lines.  When the flag is not specified, the
# @DBMALLOC@ will contain the string "#", thus commenting out the lines
# and disabling dbmalloc.

@DBMALLOC@LIBDEBUG = -L/usr/local/lib -ldbmalloc
@DBMALLOC@DEBUGINCLUDE= -I/usr/local/debug_include
@DBMALLOC@CFLAGS+= -DDBMALLOC

# Similar as above for TCP debugging
@DBTCP@CFLAGS+= -DDBTCP

INCLUDEPATH =  @EXTINCLUDE@ $(DEBUGINCLUDE) -I/usr/include -I/usr/local/include 
LDFLAGS = @LDFLAGS@
LDADD = @LIBS@ $(LIBDEBUG)

PROG = totd
MAN = totd.8
SRCS =  request.c response.c context.c ne_mesg.c \
	conv_trick.c ev_tcp.c forward.c queue.c \
	read_config.c tcp_request.c tcp_response.c \
	ev_dup.c list.c res_record.c udp_request.c \
	ev_timeout.c udp_response.c ev_signal.c ev_udp_in.c ne_io.c \
	conv_scoped.c conv_stf.c strlcpy.c strlcat.c
INCLUDES = config.h macros.h protos.h totd.h tot_constants.h tot_types.h

OBJS+=$(SRCS:.c=.o)

SRCS+=  ${PROG}.c

all: $(PROG)

${PROG}:	${OBJS} ${INCLUDES}
	        ${CC} ${LDFLAGS} -o ${PROG} ${OBJS} ${LDADD}

install: $(PROG)
	$(INSTALL) -c -s -m 0555 -o root -g root $(PROG) $(INSTALLDIR)
	$(INSTALL) -c -m 0444 -o root -g root $(MAN) $(INSTALLMAN)/man8

lint:
	lint ${SRCS}

depend:
	@(mkdep ${SRCS} || makedepend ${SRCS}) 2>/dev/null

clean:
	rm -f core *.core *~ $(PROG) $(OBJS) 

distclean: clean
	rm -f config.cache config.status config.log .depend
	cp Makefile.dummy Makefile

cvs: distclean
	cvs2cl -W 10000 -r -t -b -P
	cvs commit -m "End of my working day"