home *** CD-ROM | disk | FTP | other *** search
- head 1.3;
- access;
- symbols
- HWGDIFF_Fish:1.3
- HWGDIFF:1.2;
- locks; strict;
- comment @# @;
-
-
- 1.3
- date 93.02.07.16.23.28; author heinz; state Exp;
- branches;
- next 1.2;
-
- 1.2
- date 93.01.19.14.36.25; author heinz; state Exp;
- branches;
- next 1.1;
-
- 1.1
- date 93.01.19.14.07.30; author heinz; state Exp;
- branches;
- next ;
-
-
- desc
- @This is the actual makefile for SAS/C 6.1
- The original makefile is still there though it is unused.
- @
-
-
- 1.3
- log
- @Added more dependencies for brain damaged smake.
- @
- text
- @# Makefile for GNU DIFF
- # Copyright (C) 1988, 1989 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 1, 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.
-
- # You can compile this with ordinary cc as well,
- # but gcc makes it faster.
- # Also, gcc supports -O and -g together.
- CC=SC
- # The global and peehole optimizers don't like regex.c
- CFLAGS = RESOPT DEFINE=AMIGA=1 IGNORE=62,85,93,100,120,149,154,161,178\
- ANSI STRICT ERROR=ALL\
- DEFINE=C_ALLOCA DEFINE=STACK_DIRECTION=-1 OPTIMIZE
- LIBS = STRT=LIB:cres.o
- INSTALL = COPY CLONE
-
- # On system V, enable these three lines:
- # CFLAGS = -g -DUSG
- # LIBS = -lPW
- # INSTALL = cp
- # (If you compile with GCC, you don't need to define LIBS.)
- # And, depending on the names and contents of your header files,
- # add either -DHAVE_NDIR or -DHAVE_DIRECT or both to CFLAGS.
- # Add -DHAVE_NDIR to CFLAGS if your system used ndir.h instead of dirent.h
- # Add -DHAVE_DIRECT to CFLAGS if your system uses 'struct direct' instead of
- # 'struct dirent' (this is the case at least with one add-on ndir library).
-
- # Use these definitions for XENIX:
- # There are rumors of bugs in various Xenix's dirent.h and -ldir. As
- # a result, we suggest using HAVE_NDIR and not using -ldir.
- # CFLAGS = -O -DUSG -DXENIX -DHAVE_NDIR -DHAVE_DIRECT -DNDIR_IN_SYS
- # LIBS = -lx -lPW
- # INSTALL = cp
-
- # Some System V machines do not come with libPW. If this is true, use
- # the GNU alloca by switching the comment on the following lines.
- # ALLOCA =
- ALLOCA = $(archpfx)alloca.o
-
- bindir=
- prefix=RCS:
-
- # All source files
- 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 limits.h diff3.c \
- getopt.c getopt1.c getopt.h alloca.c
- # Object files for diff only.
- objs=$(archpfx)diff.o $(archpfx)analyze.o $(archpfx)io.o $(archpfx)context.o \
- $(archpfx)ed.o $(archpfx)normal.o $(archpfx)util.o $(archpfx)dir.o \
- $(archpfx)regex.o $(archpfx)ifdef.o $(archpfx)version.o \
- $(archpfx)getopt.o $(archpfx)getopt1.o $(ALLOCA) $(archpfx)popen.o
- tapefiles = $(srcs) README diagmeet.note Makefile COPYING ChangeLog
-
- .ONERROR:
- say "Error!"
-
- all: $(archpfx)diff $(archpfx)diff3
- say "All Done!"
-
- objs3=$(archpfx)diff3.o $(archpfx) $(archpfx)getopt.o $(archpfx)getopt1.o\
- $(ALLOCA) $(archpfx)popen.o
- $(archpfx)diff3: $(objs3)
- $(CC) $(CFLAGS) LINK PNAME $(archpfx)diff3 $(LDFLAGS) $(objs3) $(LIBS)
-
- $(archpfx)diff: $(objs)
- $(CC) $(CFLAGS) LINK PNAME $(archpfx)diff $(LDFLAGS) $(objs) $(LIBS)
-
- $(archpfx)regex.o: regex.c diff.h
- $(CC) $(CFLAGS) $*
-
- $(objs): diff.h
-
- $(archpfx)context.o $(archpfx)diff.o: regex.h
-
- $(archpfx)diff3.o: diff3.c
- $(CC) $(CFLAGS) "DEFINE=DIFF_PROGRAM=*"$(bindir)diff*"" diff3.c \
- $(OUTPUT_OPTION)
-
- clean:
- -DELETE FORCE \#?.o \#?.lnk $(archpfx)diff $(archpfx)diff3 diff.tar diff.tar.Z
-
- install: install-diff install-diff3
-
- install-diff: $(prefix)$(bindir)diff
-
- $(prefix)$(bindir)diff: $(archpfx)diff
- $(INSTALL) $(archpfx)diff $(prefix)$(bindir)diff
-
- install-diff3: $(prefix)$(bindir)diff3
-
- $(prefix)$(bindir)diff3: $(archpfx)diff3
- $(INSTALL) $(archpfx)diff3 $(prefix)$(bindir)diff3
-
- diff.tar: $(tapefiles)
- mkdir tmp
- mkdir tmp/diff
- -ln $(tapefiles) tmp/diff
- for file in $(tapefiles); do \
- if [ ! -r tmp/diff/$$file ]; then cp $$file tmp/diff; fi \
- done
- cd tmp; tar cf ../diff.tar diff
- rm -rf tmp
-
- diff.tar.Z: diff.tar
- compress < diff.tar > diff.tar.Z
-
- alloca.o: alloca.c
- analyze.o: analyze.c
- context.o: context.c
- diff3.o: diff3.c
- ed.o: ed.c
- getopt.o: getopt.c
- getopt1.o: getopt1.c
- ifdef.o: ifdef.c
- io.o: io.c
- normal.o: normal.c
- regex.o: regex.c
- util.o: util.c
- diff.o: diff.c
- dir.o: dir.c
- popen.o: popen.c
- version.o: version.c
-
- @
-
-
- 1.2
- log
- @prefix is now RCS: to make installation easier.
- @
- text
- @d120 18
- @
-
-
- 1.1
- log
- @Initial revision
- @
- text
- @d55 1
- a55 1
- prefix=T:
- @
-