# Generated automatically from Makefile.in by configure. # Makefile for GNU DIFF # Copyright (C) 1988,1989,1991,1992,1993,1994 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. #### Start of system configuration section. #### srcdir = . CC = cc CPPFLAGS = DEFS = -DHAVE_CONFIG_H CFLAGS = -wo $(OPT) LDFLAGS = -stack 11m LIBS = LIBOBJS = # Some System V machines do not come with libPW. # If this is true for you, use the GNU alloca.o here. ALLOCA = prefix = /usr exec_prefix = ${prefix} edit_program_name = sed 's,x,x,' bindir = $(exec_prefix)/bin infodir = $(prefix)/info DEFAULT_EDITOR_PROGRAM = ed DIFF_PROGRAM = $(bindir)/diff NULL_DEVICE = /dev/null PR_PROGRAM = /usr/bin/pr #### End of system configuration section. #### SHELL = /bin/sh PROGRAMS = diff diff3 sdiff all: $(PROGRAMS) COMPILE = $(CC) -c $(CPPFLAGS) $(DEFS) -I. -I$(srcdir) $(CFLAGS) .c.o: $(COMPILE) $< diff_o = diff.o analyze.o cmpbuf.o dir.o io.o util.o \ context.o ed.o ifdef.o normal.o side.o \ fnmatch.o getopt.o getopt1.o regex.o version.o $(ALLOCA) $(LIBOBJS) diff: $(diff_o) $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(diff_o) $(LIBS) diff3_o = diff3.o getopt.o getopt1.o version.o $(LIBOBJS) diff3: $(diff3_o) $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(diff3_o) $(LIBS) sdiff_o = sdiff.o getopt.o getopt1.o version.o $(LIBOBJS) sdiff: $(sdiff_o) $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(sdiff_o) $(LIBS) $(diff_o): diff.h system.h cmp.o diff3.o sdiff.o: system.h context.o diff.o regex.o: regex.h cmp.o diff.o diff3.o sdiff.o getopt.o getopt1.o: getopt.h diff.o fnmatch.o: fnmatch.h analyze.o cmpbuf.o cmp.o: cmpbuf.h diff3.o: diff3.c $(COMPILE) -DDIFF_PROGRAM=\"$(DIFF_PROGRAM)\" $(srcdir)/diff3.c sdiff.o: sdiff.c $(COMPILE) -DDEFAULT_EDITOR_PROGRAM=\"$(DEFAULT_EDITOR_PROGRAM)\" \ -DDIFF_PROGRAM=\"$(DIFF_PROGRAM)\" $(srcdir)/sdiff.c util.o: util.c $(COMPILE) -DPR_PROGRAM=\"$(PR_PROGRAM)\" $(srcdir)/util.c clean: rm -f *.o $(PROGRAMS) core rm -f *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.log rm -f *.pg *.pgs *.toc *.tp *.tps *.vr *.vrs install: $(prefix)/bin/diff $(prefix)/bin/diff3 $(prefix)/bin/sdiff \ $(prefix)/man/man1/diff.1 $(prefix)/man/man1/diff3.1 $(prefix)/bin/diff: diff install -lc $? $@ $(prefix)/bin/diff3: diff3 install -lc $? $@ $(prefix)/bin/sdiff: sdiff install -lc $? $@ $(prefix)/man/man1/diff.1: diff.1 install -lc $? $@ $(prefix)/man/man1/diff3.1: diff3.1 install -lc $? $@ # We need more tests. check: ./diff diff diff ./diff3 diff3 diff3 diff3 ./sdiff sdiff sdiff