File: Makefile.in

package info (click to toggle)
epic5 1.1.10-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 4,624 kB
  • ctags: 6,288
  • sloc: ansic: 68,826; makefile: 700; ruby: 227; sh: 178; perl: 30
file content (207 lines) | stat: -rw-r--r-- 5,975 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
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
# IRC II was originally written by Michael Sandrof
# Copyright 1991 Michael Sandrof
# Copyright 1993 Matthew Green
# Copyright 1998 EPIC Software Labs
#
# This software uses your normal, default targets.  It should not be any
# more difficult than anything else to install.
#
# Most useful targets:
#	make		- Compiles ircII and wserv4
#	make install	- Installs ircII and wserv4 and the standard script
#			  library to the normal places
#	make clean	- Remove everything created by compiling
#	make distclean	- make clean + remove autoconf generated stuff
#
# Other interesting targets:
#	make wserv		- Compile just wserv
#	make installwserv 	- Installs just wserv
#	make installepic	- Installs just the epic binary
#	make installscript 	- Installs just the standard script library
#

CC = @CC@
DEFS = @DEFS@
LIBS = @LIBS@

# Compiler/Linker flags -- These flags are passed to both the compiler
#			   and the linker.  Common flags include:
# -g 		Include debugging info in the binary.  
# -O		Compiler should do some basic optimizations.  
# -Wall 	For GCC compilers, the -Wall flag turns on lots of additional
#		warning checks.  You can safely ignore any warnings about 
#		"NULL format", as those uses are intentional.
CFLAGS = @CFLAGS@

# Compiler flags -- These flags are passed only to the compiler.
#		    Common flags include:
# -ansi		These two flags turn on "ansi" or "standard" mode on some
# -std1		vendor compilers.  This flag is required for the Digital
#		Alpha 'cc' compiler, and may be required for other compilers
#		that don't allow ansi C extensions without it.  GCC does
#		not require this flag, though EPIC will compile with it.
ANSIFLAGS =

# Linker flags -- These flags are passed only to the linker.
#		  Common flags include:
# -s		Strip all debugging information from the resulting binary. 
# -static	Generate a binary that does not use shared libraries
LDFLAGS = @LDFLAGS@


#
# These are automatically generated by 'configure'.  You really ought to 
# get in the habit of specifying these to 'configure' rather than changing 
# them here. ;-)
#
# Note that some things have changed!  This summarizes the changes:
#
# Script library	old:	/usr/local/lib/irc/script	
#			new:    /usr/local/share/epic5/script
# Help files		old:	/usr/local/lib/irc/help
#			new:    /usr/local/share/epic5/help
# Wserv location	old:	/usr/local/bin/wserv
#			new:	/usr/local/libexec/wserv
#
IP	    = @program_prefix@
prefix      = @prefix@
exec_prefix = @exec_prefix@
bindir      = @bindir@
libexecdir  = @libexecdir@
sharedir    = @datadir@
mandir	    = @mandir@

epic5       = @epic5@
epic5_exe   = $(bindir)/$(epic5)
wserv_exe   = $(libexecdir)/$(epic5)-wserv4
epic5dir    = $(sharedir)/$(epic5)

############ You ought not change anything below this line ###################

RM = rm -f
CP = cp
MV = mv
INSTALL_PROGRAM = @srcdir@/bsdinstall -c -m 755
INSTALL_DATA = @srcdir@/bsdinstall -c -m 644

VERSION  = @VERSION@

SHELL = /bin/sh
MAKE2 = $(MAKE) $(MFLAGS)
MFLAGS ='CC=$(CC)'					\
	'ANSIFLAGS=$(ANSIFLAGS)'			\
	'CFLAGS=$(CFLAGS)'				\
	'DEFS=$(DEFS)'					\
	'INSTALL_WSERV=$(wserv_exe)'			\
	'IRCLIB=$(epic5dir)'				\
	'LDFLAGS=$(LDFLAGS)'				\
	'LIBS=$(LIBS)'					\
	'RM=$(RM)'

all everything: epic5 @WSERV_BIN@
install installeverything: all installbin installscript installman
installbin: installepic5 @WSERV_INSTALL@


VPATH=@srcdir@

#
# Main irc binary
#
epic5: source/Makefile Makefile
	@cd source; $(MAKE2) all

EPIC 	  = $(epic5_exe)-$(VERSION)
EPIC_OLD  = $(epic5_exe).old
EPIC_LINK = $(epic5_exe)
installepic5 installirc: epic5 installdirs test
	if ./my_test \( ! -f $(IP)$(DESTDIR)$(EPIC) \) \
			-o source/epic5 -nt $(IP)$(DESTDIR)$(EPIC); then \
		$(INSTALL_PROGRAM) source/epic5 $(IP)$(DESTDIR)$(EPIC_LINK);	\
	fi

#
# wserv
#
wserv4: source/wserv.c source/gailib.c source/Makefile
	@cd source; $(MAKE2) wserv4

WSERV	 = $(wserv_exe)
installwserv4: wserv4 installdirs test
	if ./my_test \( \! -f $(IP)$(DESTDIR)$(WSERV) \) -o \
			source/wserv4 -nt $(IP)$(DESTDIR)$(WSERV); then	\
		$(INSTALL_PROGRAM) source/wserv4 $(IP)$(DESTDIR)$(WSERV);	\
	fi


#
# Script library
#
scriptdir = $(epic5dir)/script
installscript: installdirs test
	-@(								\
		if ./my_test -f $(IP)$(DESTDIR)$(scriptdir)/local; then		\
			if ./my_test -f script/local; then 		\
				$(MV) @srcdir@/script/local 		\
					@srcdir@/script/local.orig;	\
			fi;						\
		fi;							\
	)
	for i in @srcdir@/script/*; \
	do \
		if ./my_test -f $$i; then \
			if ./my_test -x $$i; then \
				chmod a-x $$i; \
			fi; \
			target=$(IP)$(DESTDIR)$(scriptdir)/`basename $$i`; \
			if ./my_test -f $$target; then \
				if ./my_test $$i -nt $$target; then \
					$(INSTALL_DATA) $$i $$target; \
				fi; \
			elif ./my_test -f $$target.gz; then \
				if ./my_test $$i -nt $$target.gz; then \
					$(INSTALL_DATA) $$i $$target; \
					gzip -f $$target; \
				fi; \
			else \
				$(INSTALL_DATA) $$i $$target; \
				if ./my_test -f $(IP)$(DESTDIR)$(scriptdir)/gzip-scripts; then \
					gzip -f $$target; \
				fi; \
			fi; \
		fi; \
	done

helpdir   = $(epic5dir)/help
installhelp: installdirs
	if ./my_test -d help ; then \
		(cd @srcdir@/help; tar cf - .) | (cd $(IP)$(DESTDIR)$(helpdir); tar xf -)  ; \
	else \
		echo No help files to install. ; \
	fi

installman: installdirs
	$(INSTALL_DATA) @srcdir@/doc/epic5.1 $(IP)$(DESTDIR)$(mandir)/man1/$(epic5).1

installdirs:
	umask 022; \
	@srcdir@/mkinstalldirs $(IP)$(DESTDIR)$(epic5dir) $(IP)$(DESTDIR)$(scriptdir) \
		$(IP)$(DESTDIR)$(helpdir) $(IP)$(DESTDIR)$(bindir) $(IP)$(DESTDIR)$(libexecdir) \
		$(IP)$(DESTDIR)$(mandir)/man1

test.o: @srcdir@/test.c
	$(CC) -c @srcdir@/test.c
test: test.o
	$(CC) test.o -o my_test

clean:
	@-if test -f source/Makefile; then cd source; $(MAKE2) clean; fi
	$(RM) test.o my_test

distclean cleandir realclean: clean
	$(RM) Makefile source/Makefile source/sig.inc config.status config.cache config.log include/defs.h source/info.c.sh

depend:
	(cd source;make depend)

# This is the end of the file.