File: Imakefile

package info (click to toggle)
youbin 3.4-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,652 kB
  • ctags: 1,234
  • sloc: ansic: 5,882; makefile: 584; sh: 24
file content (179 lines) | stat: -rw-r--r-- 4,536 bytes parent folder | download
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
XCOMM 
XCOMM Program:      $RCSfile: Imakefile,v $  $Revision: 4.14 $
XCOMM 
XCOMM Purpose:      "Imakefile" of the Internet "youbin" service.
XCOMM 
XCOMM Author:       K.Agusa     agusa@nuie.nagoya-u.ac.jp
XCOMM               S.Yamamoto  yamamoto@nuie.nagoya-u.ac.jp
XCOMM 
XCOMM Date:         1993/07/24
XCOMM Modified:     $Date: 1995/04/08 11:47:15 $
XCOMM 
XCOMM Copyright:    K.Agusa and S.Yamamoto  1993 - 1995
XCOMM 

/* 
 * Directories.
 */

/* Directory for server. */
SERVER_BINDIR = /usr/sbin

/* Directory for clients. */
BINDIR = /usr/bin

/* Select one of them.
 * If you want to use on-line manual written in Japanese, use DOCDIR_JP. */
MANSRC_DIR = $(DOCDIR)
/* MANSRC_DIR = $(DOCDIR_JP) */

/* 
 * Architectur depedent configurations.
 */

#if defined(SunArchitecture) && 4 < OSMajorVersion
MAIL_SPOOL = -DMAIL_SPOOL=\"/usr/mail/\"
#endif

#ifdef LinuxArchitecture
SPECIAL_DEFS = -DUSE_TERMIO
#endif

/* 
 * Configurations.
 */

/* Mail spool directory:
 * If your machine is SVR4, default MAIL_SPOOL is "/usr/mail/".
 * In other environments, default MAIL_SPOOL is "/usr/spool/mail/".
 * Select one of them, if you don't like these default values. */
/* MAIL_SPOOL = -DMAIL_SPOOL=\"/usr/mail/\" */
MAIL_SPOOL = -DMAIL_SPOOL=\"/var/spool/mail/\"

/* Syslog: Comment following lines, if you don't want to use syslog. */
SYSLOG = -DSYSLOG

/* Sound facility: xyoubin on NEWS-OS and SunOS can play sound. */
#ifdef SonyArchitecture
SOUND_LIB = -lsound
#endif

/* Syslog: Change a following line, if you want to change sylog facility. */
/* SYSLOG_FACILITY = -DSYSLOG_FACILITY=LOG_LOCAL0 */

/* Clock tic in sec. */
UNIT_TIME = 180

/* XPM: Uncomment following lines, if you want to use pixmap. */
/*XPM_DEFS = -DUSE_XPM*/
/*XPM_LIBS = str_to_pixmap.o locate_pixmap.o*/
/*XPM_FLAGS = -lXpm*/

/* 
 * Other configurations.
 * Add necessary item to SPECIAL_DEFS and/or SPECIAL_LIBS.
 * Try if default configuration is not proper.
 *
 * Non-blocking wait. Define USE_POSIX_WAIT if you want to use waitpid().
 * USE_POSIX_WAIT:  waitpid() is available.
 * Otherwise:       BSD's wait3() available.
 *
 * Buggy ruserok(). Define BUGGY_RUSEROK to avoid modificaion of uid
 * by ruserok().
 *
 * Getting terminal mode. Select one of them.
 * USE_SGTTY:       Structure sgttyb is available.
 * USE_TERMIO:      Structure termio is available.
 *
 * Variable argument list. Select one of them.
 * USE_STDARG:      Use ANSI routines.
 * USE_VARARGS      Use UNIX's native routines.
 */

/* SPECIAL_DEFS = */
/* SPECIAL_LIBS = */

/* 
 * Files.
 */

TARGETS = $(SERVER) $(CLIENTS)
SERVER = youbind
CLIENTS = sendto xyoubin youbin

SRCS = $(C_SRCS)

HEADERS = youbin.h server.h
C_SRCS = base.c client.c list.c log.c mime_encode.c misc.c protocol.c \
	sendto.c server.c sound.c ver2_comp.c xyoubin.c youbin_sub.c

YOUBIND_OBJS = base.o list.o log.o protocol.o server.o misc.o ver2_comp.o
SENDTO_OBJS = sendto.o
XYOUBIN_OBJS = base.o sound.o xyoubin.o $(XPM_LIBS)
YOUBIN_OBJS = base.o client.o youbin_sub.o mime_encode.o

DOCDIR = Doc
DOCDIR_JP = Doc.Japanese

MANS = $(DOCDIR)/youbin.man $(DOCDIR)/youbind.man \
        $(DOCDIR)/youbin_sub.man 
MANS_JP = $(DOCDIR_JP)/youbin.man $(DOCDIR_JP)/youbind.man \
        $(DOCDIR_JP)/youbin_sub.man 

/* BITMAPS = */

/* 
 * Options.
 */

DEFINES = -DBINDIR=\"$(BINDIR)\" -DUNIT_TIME=$(UNIT_TIME) \
        $(MAIL_SPOOL) $(SYSLOG) $(SYSLOG_FACILITY) $(XPM_DEFS) \
        $(SPECIAL_DEFS) -DVER2_BC

EXT_LIBS = $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XPM_FLAGS) $(XLIB) \
	$(SOUND_LIB) $(SPECIAL_LIBS)

LDFLAGS = -lcrypt
/* 
 * Debug. 
 */

/* SERVER_BINDIR = /usr/local/etc */
/* BINDIR = . */
/* SERVICE_NAME = youbin */
/* UNIT_TIME = 5 */

/* 
 * DEFINES = -DBINDIR=\"$(BINDIR)\" -DSERVICE_NAME=\"$(SERVICE_NAME)\" \
 *         -DUNIT_TIME=$(UNIT_TIME) \
 *         $(MAIL_SPOOL) $(SYSLOG_FACILITY) $(SYSLOG) $(XPM_DEFS)
 */

/* 
 * Target entries.
 */

all:: $(TARGETS)

SingleProgramTarget(youbind,$(YOUBIND_OBJS),$(LDFLAGS),)
SingleProgramTarget(sendto,$(SENDTO_OBJS),,)
SingleProgramTarget(xyoubin,$(XYOUBIN_OBJS),$(EXT_LIBS),)
SingleProgramTarget(youbin,$(YOUBIN_OBJS),,)

InstallProgram(youbind,$(SERVER_BINDIR))
InstallProgram(sendto,$(BINDIR))
InstallProgram(xyoubin,$(BINDIR))

InstallProgramWithFlags(youbin,$(BINDIR),$(INSTUIDFLAGS))

/* InstallAppDefaults(XYoubin) */

install.man::
	csh -c "cp $(MANSRC_DIR)/*.man ."

InstallManPage($(DOCDIR)/youbin,$(MANDIR))
InstallManPage($(DOCDIR)/youbin_sub,$(MANDIR))
InstallManPage($(DOCDIR)/youbind,$(MANDIR))

DependTarget()
LintTarget()