summaryrefslogtreecommitdiff
path: root/server/Imakefile
blob: fcf0232df895ace78f366ad3178aeb4fcf5f7870 (plain)
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
/**/#	Copyright 1988 Massachusetts Institute of Technology.
/**/#
/**/#	For copying and distribution information, see the file
/**/#	"mit-copyright.h". 
/**/#
/**/#	$Source$
/**/#	$Author$
/**/#	$Header$
/**/#

#if defined(SYSLOG_COMPAT42)
SYSLOG_OBJ= ../clients/syslogd/syslog.o
SYSLOG_DEF= -I../clients/syslogd
#else
SYSLOG_OBJ=
SYSLOG_DEF=
#endif

#ifdef __NetBSD__
OSLIBS=-lcompat			/* for insque() */
#endif

XDEFS = $(SYSLOG_DEF) -DCONCURRENT

SRCS=	access.c \
	bdump.c \
	class.c \
	client.c \
	common.c \
	dispatch.c \
	hostm.c \
	kopt.c \
	kstuff.c \
	main.c \
	server.c \
	subscr.c \
	timer.c \
	uloc.c \
	version.c \
	zsrv_err.c \
	zstring.c

OBJS=	access.o \
	bdump.o \
	class.o \
	client.o \
	common.o \
	dispatch.o \
	hostm.o \
	kopt.o \
	kstuff.o \
	main.o \
	server.o \
	subscr.o \
	timer.o \
	uloc.o \
	zsrv_err.o \
	zstring.o

error_table(zsrv_err)
SimpleProgram(zephyrd,$(OBJS) $(SYSLOG_OBJ) version.o $(ZLIB) $(ZLIBDES), $(ZLIBS) $(OSLIBS), $(ATHETCDIR))
install_man(zephyrd.8,zephyrd.8)
install_file(default.subscriptions,$(ZETCDIR))

create_dir($(ZACLDIR))
install::
	$(RM) $(DESTDIR)$(ZACLDIR)/?*.acl
	$(CP) acl/?* $(DESTDIR)$(ZACLDIR)

depend:: zsrv_err.h version.h
$(OBJS): zsrv_err.h

version.o: version.h
version.h: $(SRCS)
	$(RM) version.h
	sh new_vers.sh