home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.mactech.com 2010
/
ftp.mactech.com.tar
/
ftp.mactech.com
/
online
/
source
/
c
/
compilers
/
DiffUtils.sit.hqx
/
DiffUtils
/
src
/
Makefile
< prev
next >
Wrap
Makefile
|
1994-02-14
|
5KB
|
142 lines
# Makefile for GNU DIFF
# Copyright (C) 1988, 1989, 1991, 1992 Free Software Foundation, Inc.
#
# This file is part of GNU DIFF.
#
# GNU DIFF 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.
#
# GNU DIFF 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 GNU DIFF; see the file COPYING. If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
#
# MPW port Matthias Neeracher <neeri@iis.ethz.ch>
#
#### Start of system configuration section. ####
srcdir = :
bindir = {MPW}LocalTools:
CC = C
# Things you might add to DEFS:
# -DSTDC_HEADERS If you have ANSI C headers and libraries.
# -DHAVE_UNISTD_H If you have unistd.h.
# -DUSG If you have System V/ANSI C string and
# memory functions and headers, fcntl.h, and ndir.h.
# -DDIRENT If you have dirent.h.
# -DSYSNDIR Old Xenix systems (selects sys/ndir.h).
# -DHAVE_VFORK_H If you have vfork and it needs vfork.h.
# -DHAVE_DUP2 If you have dup2 system call.
# -DHAVE_WAITPID If you have waitpid system call.
# -DHAVE_ST_BLKSIZE If your struct stat has an st_blksize member.
# -DHAVE_STRERROR If you have strerror function.
# -DHAVE_ALLOCA_H If you have a working alloca.h.
DEFS = -d STDC_HEADERS -d HAVE_DUP2 -d HAVE_ST_BLKSIZE -d HAVE_MEMCHR -d HAVE_STRERROR -d VOID_CLOSEDIR
COptions = -r -mbg on -sym on {DEFS}
CPlusOptions = -mf -r -mbg on -sym on
LOptions = -mf -sym on -d
LIBS = "{CLibraries}GUSI.o" ∂
"{Libraries}Runtime.o" ∂
"{Libraries}Interface.o" ∂
"{CLibraries}StdCLib.o" ∂
"{Libraries}ToolLibs.o"
# Some System V machines do not come with libPW.
# If this is true for you, use the GNU alloca.o here.
ALLOCA = alloca.c.o
# The source files for all of the programs.
srcs=diff.c analyze.c io.c context.c ed.c normal.c ifdef.c util.c dir.c ∂
version.c diff.h regex.c regex.h side.c system.h limits.h ∂
diff3.c sdiff.c cmp.c error.c xmalloc.c getopt.c getopt1.c getopt.h ∂
fnmatch.c fnmatch.h alloca.c cmpbuf.c
# Object files for diff only.
objs=diff.c.o analyze.c.o io.c.o context.c.o ∂
ed.c.o normal.c.o util.c.o dir.c.o fnmatch.c.o ∂
regex.c.o side.c.o ifdef.c.o version.c.o ∂
getopt.c.o getopt1.c.o cmpbuf.c.o {ALLOCA}
.c.o ƒ .c
{C} {COptions} -s {Default} {DepDir}{Default}.c -o {TargDir}{Default}.c.o
# all ƒ diff diff3 sdiff cmp
all ƒ diff cmp
diff ƒƒ {objs}
Link {LOptions} -t 'MPST' -c 'MPS ' -o diff {objs} {LIBS}
diff ƒƒ diff.r diff.rsrc
Rez -a -t 'MPST' -c 'MPS ' -o diff diff.r
cmp ƒƒ cmp.c.o getopt.c.o getopt1.c.o error.c.o xmalloc.c.o cmpbuf.c.o version.c.o {ALLOCA}
Link {LOptions} -t 'MPST' -c 'MPS ' -o cmp {LIBS} ∂
cmp.c.o getopt.c.o getopt1.c.o error.c.o xmalloc.c.o cmpbuf.c.o version.c.o {ALLOCA}
cmp ƒƒ cmp.r
Rez -a -t 'MPST' -c 'MPS ' -o cmp cmp.r
# diff3: diff3.o getopt.o getopt1.o version.o $(ALLOCA)
# $(CC) -o $@ $(LDFLAGS) diff3.o getopt.o getopt1.o version.o $(ALLOCA) $(LIBS)
#
# sdiff: sdiff.o getopt.o getopt1.o version.o $(ALLOCA)
# $(CC) -o $@ $(LDFLAGS) sdiff.o getopt.o getopt1.o version.o $(ALLOCA) $(LIBS)
#
# cmp: cmp.o getopt.o getopt1.o error.o xmalloc.o $(ALLOCA)
# $(CC) -o $@ $(LDFLAGS) cmp.o getopt.o getopt1.o error.o xmalloc.o $(ALLOCA) $(LIBS)
#
# diff.info: diff.texi
# $(MAKEINFO) $(srcdir)/diff.texi
{objs} ƒ diff.h system.h
cmp.c.o diff3.c.o sdiff.c.o ƒ system.h
context.c.o diff.c.o regex.c.o ƒ regex.h
cmp.c.o diff.c.o diff3.c.o sdiff.c.o getopt.c.o getopt1.c.o ƒ getopt.h
diff.c.o fnmatch.c.o ƒ fnmatch.h
# diff3.o: diff3.c
# $(CC) -c $(CFLAGS) $(CPPFLAGS) $(DEFS) -DDIFF_PROGRAM=\"$(bindir)/diff\" $(srcdir)/diff3.c
# sdiff.o: sdiff.c
# $(CC) -c $(CFLAGS) $(CPPFLAGS) $(DEFS) -DDIFF_PROGRAM=\"$(bindir)/diff\" $(srcdir)/sdiff.c
# TAGS: $(srcs)
# etags $(srcs)
clean ƒ
SafeDel -y ≈.c.o diff diff3 sdiff cmp core
install ƒ
Backup -a diff cmp -to {bindir}>DoInstall && (DoInstall ; delete DoInstall)
# install: all
# for p in diff diff3 sdiff cmp; \
# do $(INSTALL_PROGRAM) $$p $(bindir)/$(binprefix)$$p; done
# cd $(srcdir); for f in diff.info*; \
# do $(INSTALL_DATA) $$f $(infodir)/$$f; done
# uninstall: all
# for p in diff diff3 sdiff cmp; \
# do rm -f $(bindir)/$(binprefix)$$p; done
# rm -f $(infodir)/diff.info*
distr ƒ all Diff.ps
Distribute Diff.distr DiffUtils_261.sit
Diff.dvi ƒ Diff.texi
texi2dvi Diff.texi
Diff.ps ƒ Diff.dvi
dvips -o Diff.ps Diff.dvi