File: Makefile.in

package info (click to toggle)
sharutils 1:4.2-6
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 1,436 kB
  • ctags: 587
  • sloc: ansic: 6,313; perl: 1,742; makefile: 563; sh: 495; pascal: 293; sed: 93
file content (155 lines) | stat: -rw-r--r-- 4,140 bytes parent folder | download | duplicates (5)
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
# Makefile for program source directory in GNU Shar utilities package.
# Copyright (C) 1995 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

PACKAGE = @PACKAGE@
VERSION = @VERSION@
PROGRAMS = @PROGRAMS@
SCRIPTS = mailshar mail-files remsync

SHELL = /bin/sh

srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@

prefix = @prefix@
exec_prefix = @exec_prefix@
transform = @program_transform_name@
bindir = $(exec_prefix)/bin
datadir = $(prefix)/@DATADIRNAME@
localedir = $(datadir)/locale
subdir = src

AR = ar
CC = @CC@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
RANLIB = @RANLIB@

DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
LIBS = ../lib/libshar.a @INTLLIBS@ ../lib/libshar.a @LIBS@
CFLAGS = @CFLAGS@
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@

COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)
LINK = $(CC) $(LDFLAGS) -o $@

SOURCES = shar.c unshar.c uudecode.c uuencode.c
OBJECTS = shar.o unshar.o uudecode.o uuencode.o
COMSRCS = encode.c
COMOBJS = encode.o
DISTFILES = ChangeLog Makefile.in mail-files.in mailshar.in remsync.in \
$(SOURCES) $(COMSRCS)

.SUFFIXES:
.SUFFIXES: .c .o
.c.o:
	$(COMPILE) $<

INCLUDES = -I$(srcdir) -I.. -I$(top_srcdir)/lib -I../intl -I$(top_srcdir)/intl

all: $(PROGRAMS) $(SCRIPTS)


shar: shar.o
	$(LINK) shar.o $(COMOBJS) $(LIBS)

unshar: unshar.o
	$(LINK) unshar.o $(LIBS)

uudecode: uudecode.o
	$(LINK) uudecode.o $(LIBS)

uuencode: uuencode.o
	$(LINK) uuencode.o $(LIBS)


$(PROGRAMS): ../lib/libshar.a @INTLDEPS@
shar: $(COMOBJS)

$(OBJECTS) $(COMOBJS): ../config.h ../lib/system.h

install: install-exec install-data
install-exec: all
	$(top_srcdir)/mkinstalldirs $(bindir)
	for name in $(PROGRAMS); do \
	  $(INSTALL_PROGRAM) $$name \
		$(bindir)/`echo $$name | sed '$(transform)'`; \
	done;
	for name in $(SCRIPTS); do \
	  $(INSTALL_SCRIPT) $$name \
		$(bindir)/`echo $$name | sed '$(transform)'`; \
	done
install-data:

uninstall:
	for name in $(PROGRAMS); do \
	  rm -f $(bindir)/`echo $$name | sed '$(transform)'`; \
	done

check: all

tags: TAGS

TAGS: $(HEADERS) $(SOURCES) $(COMSRCS)
	here=`pwd`; cd $(srcdir) && etags -o $$here/TAGS \
	  $(HEADERS) $(SOURCES) $(COMSRCS)

id: ID

ID: $(HEADERS) $(SOURCES) $(COMSRCS)
	here=`pwd`; cd $(srcdir) && mkid -f$$here/ID \
	  $(HEADERS) $(SOURCES) $(COMSRCS)

mostlyclean:
	rm -f *.o core core.*

clean: mostlyclean
	rm -f shar unshar uudecode uuencode

distclean: clean
	rm -f Makefile ID TAGS
	rm -f mailshar mail-files remsync

maintainer-clean: distclean
	@echo "This command is intended for maintainers to use;"
	@echo "it deletes files that may require special tools to rebuild."

distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
dist: Makefile $(DISTFILES)
	for file in $(DISTFILES); do \
	  ln $(srcdir)/$$file $(distdir) 2> /dev/null \
	    || cp -p $(srcdir)/$$file $(distdir); \
	done

Makefile: Makefile.in ../config.status
	cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status

mailshar: $(srcdir)/mailshar.in ../config.status
	cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status

mail-files: $(srcdir)/mail-files.in ../config.status
	cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status

remsync: $(srcdir)/remsync.in ../config.status
	cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status

# Tell versions [3.59,3.63) of GNU make not to export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT: