File: Makefile.in

package info (click to toggle)
slrn 1.0.3+dfsg-3
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 6,412 kB
  • sloc: ansic: 39,852; sh: 3,777; perl: 467; makefile: 229; sed: 24
file content (222 lines) | stat: -rw-r--r-- 7,484 bytes parent folder | download | duplicates (2)
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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
# Unix Makefile for slrn                               -*- sh -*-
#-----------------------------------------------------------------------------
# C compiler.  It must understand prototypes.
#-----------------------------------------------------------------------------
CC = @CC@
CFLAGS = @CFLAGS@
LDFLAGS = @LDFLAGS@
CPPFLAGS = @CPPFLAGS@
#-----------------------------------------------------------------------------
# Required Libraries
#-----------------------------------------------------------------------------
SLANG_INC	= @SLANG_INC@
SLANG_LIB	= @SLANG_LIB@ -lslang
#-----------------------------------------------------------------------------
# Optional Libraries
#-----------------------------------------------------------------------------
UUDEVIEW_LIB	= @UU_LIB@ @LINK_LIBUU@
UUDEVIEW_INC	= @UU_INC@
CANLOCK_LIB	= @CANLOCK_LIB@ @LINK_LIBCANLOCK@
CANLOCK_INC	= @CANLOCK_INC@
SSL_INC		= @SSLINC@
SSL_LIB		= @SSLLIB@
ICONV_INC       = @INCICONV@
ICONV_LIB       = @LIBICONV@ @LIBINTL@
#-----------------------------------------------------------------------------
# System Libraries
#-----------------------------------------------------------------------------
SYSLIBS = @LIBS@

#-----------------------------------------------------------------------------
RPATH		= @RPATH@

#---------------------------------------------------------------------------
# Installation Directories
#---------------------------------------------------------------------------
prefix = @prefix@
sysconfdir = @sysconfdir@
exec_prefix = @exec_prefix@
datarootdir = @datarootdir@

BINDIR = @bindir@
DOCDIR = @docdir@
MANDIR = @mandir@
CONFDIR = $(sysconfdir)/slrn
LOCALEDIR = @LOCALEDIR@
SLRN_LIB_DIR = @SLRN_LIB_DIR@
SLRN_SLANG_DIR = $(SLRN_LIB_DIR)/slang

INSTALL_OWNER = # -o root -g root
INSTALL = @INSTALL@ $(INSTALL_OWNER)
INSTALL_DATA = @INSTALL_DATA@ $(INSTALL_OWNER)
MKINSDIR = ../autoconf/mkinsdir.sh

#-----------------------------------------------------------------------------
# Location where object files are placed (Absolute pathnames!!)
#-----------------------------------------------------------------------------
OBJDIR = @OBJDIR@
SRCDIR = @SRCDIR@

# DESTDIR is designed to facilitate making packages.  Normally it is empty
DESTDIR =
DEST_BINDIR = $(DESTDIR)$(BINDIR)
DEST_DOCDIR = $(DESTDIR)$(DOCDIR)
DEST_MANDIR = $(DESTDIR)$(MANDIR)
DEST_CONFDIR = $(DESTDIR)$(CONFDIR)
DEST_SLRN_LIB_DIR = $(DESTDIR)$(SLRN_LIB_DIR)
DEST_SLRN_SLANG_DIR = $(DESTDIR)$(SLRN_SLANG_DIR)
# Directory where macros will be located.

DEFINES = -DSLRN_SLANG_DIR=\"$(SLRN_SLANG_DIR)\" \
 -DSLRN_LIB_DIR=\"$(SLRN_LIB_DIR)\" -DSLRN_CONF_DIR=\"$(CONFDIR)\" \
 -DNLS_LOCALEDIR=\"$(LOCALEDIR)\"

# Files to install in DOC_DIR:
DOCDIR_FILES = `cat ../doc/INSTFILES`
UP_DOC_FILES = COPYRIGHT COPYING README changes.txt
MAN_FILES = ../doc/slrn.1 @MAN_SLRNPULL@
SLANG_FILES = `cat ../macros/INSTFILES`
SLRNPULL_DOCS = ../slrnpull/*
CONF_FILES = #../lib/slrn.conf (Note: uncomment DEST_CONFDIR setting if non-empty)

#----------------------------------------------------------------------------
# Nothing below here should require changing.
#----------------------------------------------------------------------------
SHELL = /bin/sh
OBJS = @PROGRAM_OBJECTS@
OFILES = @PROGRAM_OFILES@

EXEC = slrn
OTHER_EXECS = @SLRNPULL@
CONFIG_H = config.h
INCS = $(SLANG_INC) $(CANLOCK_INC) $(ICONV_INC) $(UUDEVIEW_INC) $(SSL_INC) $(MISCINCLUDES)
ALL_CFLAGS = $(CFLAGS) -Dunix $(CPPFLAGS) $(INCS) $(DEFINES)
EXECLIBS = $(SLANG_LIB) $(UUDEVIEW_LIB) $(CANLOCK_LIB) $(SSL_LIB) $(ICONV_LIB) $(SYSLIBS)
DOT_O_DEPS = slrnfeat.h config.h
server_O_DEP = clientlib.c spool.c nntp.c sltcp.c nntplib.c
chmap_O_DEP = chmap.h charmaps.h
chkslang_O_DEP = config.h Makefile
version_O_DEP = version.h

slrnpull_O_DEP = score.c xover.c hash.c version.h $(CONFIG_H)
slrnpull_DEPS = $(OBJDIR)/util.o $(OBJDIR)/strutil.o $(OBJDIR)/sortdate.o \
 $(OBJDIR)/sltcp.o $(OBJDIR)/nntplib.o $(OBJDIR)/slrndir.o $(OBJDIR)/ranges.o \
 $(OBJDIR)/vfile.o

slrnpull_LIBS = $(slrnpull_DEPS)

UUDECODE_OBJS = $(OBJDIR)/strutil.o $(OBJDIR)/ttymsg.o \
  $(OBJDIR)/slrndir.o $(OBJDIR)/snprintf.o

UPDATE_VERSION_SCRIPT = $(HOME)/bin/update_changes_version

#
COMPILE_CMD = $(CC) -c $(ALL_CFLAGS)
#
all: $(EXEC) $(OTHER_EXECS)
$(EXEC): $(OBJDIR) $(CONFIG_H) slangversion $(OBJDIR)/$(EXEC)
	@echo $(EXEC) created in $(OBJDIR)
$(OBJDIR)/$(EXEC): $(OBJS)
	cd $(OBJDIR); $(CC) $(OFILES) -o $(EXEC) $(LDFLAGS) $(RPATH) $(EXECLIBS)
#
$(OBJDIR):
	-mkdir $(OBJDIR)
#
$(CONFIG_H) : $(SRCDIR)/sysconf.h
	/bin/cp $(SRCDIR)/sysconf.h $(CONFIG_H)
	touch $(CONFIG_H)
#
slangversion: $(OBJDIR)/chkslang
	$(OBJDIR)/chkslang $(EXEC) 20203
#
$(OBJDIR)/chkslang: $(OBJDIR)/chkslang.o
	$(CC) $(OBJDIR)/chkslang.o $(LDFLAGS) -o $(OBJDIR)/chkslang $(RPATH) $(EXECLIBS)
version.h: $(SRCDIR)/../changes.txt
	if [ -x $(UPDATE_VERSION_SCRIPT) ]; then \
	  $(UPDATE_VERSION_SCRIPT) $(SRCDIR)/../changes.txt $(SRCDIR)/version.h; \
	fi
#
uudecode: decode.c $(UUDECODE_OBJS)
	$(CC) $(ALL_CFLAGS) -DSTANDALONE $(LDFLAGS) -o uudecode decode.c $(UUDECODE_OBJS) $(EXECLIBS)
	touch decode.c
clean:
	/bin/rm -f $(OBJDIR)/* *~
	cd ../po; $(MAKE) clean
distclean: clean
	/bin/rm -rf $(OBJDIR) Makefile sysconf.h config.h slrnfeat.h
	cd ../po; $(MAKE) distclean
installdirs:
	$(MKINSDIR) $(DEST_BINDIR)
	$(MKINSDIR) $(DEST_DOCDIR)
	$(MKINSDIR) $(DEST_DOCDIR)/slrnpull
	$(MKINSDIR) $(DEST_MANDIR)/man1
	$(MKINSDIR) $(DEST_SLRN_LIB_DIR)
	$(MKINSDIR) $(DEST_SLRN_SLANG_DIR)
#	$(MKINSDIR) $(DEST_CONFDIR)
installdocs:
	@for i in $(MAN_FILES); \
	do \
		echo $(INSTALL_DATA) $$i $(DEST_MANDIR)/man1/; \
		$(INSTALL_DATA) $$i $(DEST_MANDIR)/man1/; \
		if [ "$$?" != "0" ]; then \
		  exit 1; \
		fi; \
	done
	@for i in $(UP_DOC_FILES); \
	do \
		echo $(INSTALL_DATA) ../$$i $(DEST_DOCDIR); \
		$(INSTALL_DATA) ../$$i $(DEST_DOCDIR); \
		if [ "$$?" != "0" ]; then \
		  exit 1; \
		fi; \
	done
	@for i in $(DOCDIR_FILES); \
	do \
		echo $(INSTALL_DATA) ../doc/$$i $(DEST_DOCDIR); \
		$(INSTALL_DATA) ../doc/$$i $(DEST_DOCDIR); \
		if [ "$$?" != "0" ]; then \
		  exit 1; \
		fi; \
	done
	@for i in $(SLRNPULL_DOCS); \
	do \
		echo $(INSTALL_DATA) ../doc/slrnpull/$$i $(DEST_DOCDIR)/slrnpull; \
		$(INSTALL_DATA) ../doc/slrnpull/$$i $(DEST_DOCDIR)/slrnpull; \
		if [ "$$?" != "0" ]; then \
		  exit 1; \
		fi; \
	done
installslang:
	@files=$(CONF_FILES); \
	for i in $$files; \
	do \
		echo $(INSTALL_DATA) $$i $(DEST_CONFDIR); \
		$(INSTALL_DATA) $$i $(DEST_CONFDIR); \
		if [ "$$?" != "0" ]; then \
		  exit 1; \
		fi; \
	done
	@for i in $(SLANG_FILES); \
	do \
		echo $(INSTALL_DATA) ../macros/$$i $(DEST_SLRN_SLANG_DIR); \
		$(INSTALL_DATA) ../macros/$$i $(DEST_SLRN_SLANG_DIR); \
		if [ "$$?" != "0" ]; then \
		  exit 1; \
		fi; \
	done
installlocales:
	-cd ../po; $(MAKE) DESTDIR=$(DESTDIR) LOCALEDIR=$(LOCALEDIR) install 
installbin:
	$(INSTALL) -m 755 -s $(OBJDIR)/slrn $(DEST_BINDIR)
	-$(INSTALL) -m 755 -s $(OBJDIR)/slrnpull $(DEST_BINDIR)
install: all installdirs installbin installdocs installslang installlocales

# The symlinks target is for my own private use.  It simply creates the object
# directory as a symbolic link to a local disk instead of an NFS mounted one.
symlinks:
	-/bin/rm -f $(ARCH)objs
	mkdir -p $(HOME)/sys/$(ARCH)/objs/slrn/src
	ln -s $(HOME)/sys/$(ARCH)/objs/slrn/src $(ARCH)objs
#---------------------------------------------------------------------------
# Rules (automatically generated)
#---------------------------------------------------------------------------