# Generated automatically from Makefile.in by configure.

###############################################################################
#									      #
# 		 Makefile for GNU Interactive Tools 4.3.9		      #
#      Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc.          #
#									      #
###############################################################################


#
#   If you make changes in this file in order to compile GIT on a system not
# included in the file PLATFORMS, please send me a patch. My internet address
# is tudor@chang.pub.ro. I'll include it in the next release. Thanks.
#

#
# GIT default install directory. You may change this if you want to install
# the GIT package in a different place.
#


PRODUCT		= "GNU Interactive Tools"
VERSION		= "4.3.9"


srcdir		= //1/ez/git-4.3.9/src
VPATH		= //1/ez/git-4.3.9/src

prefix		= /usr/local
bindir		= $(prefix)/bin
libdir		= $(prefix)/lib/git
termdir		= $(prefix)/lib/git/term

SHELL		= /bin/sh
CFLAGS		= -g
LDFLAGS		= -g
CPPFLAGS	= 
DEFS		= -DHAVE_CONFIG_H -I.. -I$(srcdir)
LIBS		= -lreadline -lsun  -ldir -lncurses
CC		= cc
CPP		= cc -E $(CPPFLAGS) $(DEFS)
INSTALL		= /usr/local/bin/install -c
INSTALL_PROGRAM	= ${INSTALL}
INSTALL_DATA	= ${INSTALL} -m 644
HOST		= 


GIT_OBJS	=  tilde.o history.o tty.o window.o inputline.o status.o panel.o git.o\
		  configure.o misc.o signals.o xmalloc.o xstring.o xio.o xid.o\
		  xstack.o system.o fsusage.o\
		  fnmatch.o
GITCMP_OBJS	= gitcmp.o
GITWIPE_OBJS	= gitwipe.o
GITKEYS_OBJS	= gitkeys.o
GITPS_OBJS	=  tilde.o tty.o window.o configure.o misc.o gitps.o\
		  xmalloc.o xstring.o xio.o
GITVIEW_OBJS	=  tilde.o tty.o window.o configure.o misc.o gitview.o\
		  xmalloc.o xstring.o xio.o
GIT_BINS	= git gitps gitview gitcmp gitkeys gitwipe
GIT_SCRIPTS	= gitmount gitaction gitredir gitrgrep gitxgrep .gitaction
GIT_RGREPS	= gitregrep gitrfgrep


all:	$(GIT_BINS)

installdirs:
	$(srcdir)/../mkinstalldirs $(bindir) $(libdir)
	chmod 755 $(bindir) $(libdir)

.c.o:
	$(CC) -c $(CFLAGS) $(DEFS) $<

git:	$(GIT_OBJS)
	$(CC) $(LDFLAGS) -o $@ $(GIT_OBJS) $(LIBS)

gitps:	$(GITPS_OBJS)
	$(CC) $(LDFLAGS) -o $@ $(GITPS_OBJS) $(LIBS)

gitview: $(GITVIEW_OBJS)
	 $(CC) $(LDFLAGS) -o $@ $(GITVIEW_OBJS) $(LIBS)

gitcmp:	$(GITCMP_OBJS)
	$(CC) $(LDFLAGS) -o $@ $(GITCMP_OBJS) $(LIBS)

gitkeys: $(GITKEYS_OBJS)
	 $(CC) $(LDFLAGS) -o $@ $(GITKEYS_OBJS) $(LIBS)

gitwipe: $(GITWIPE_OBJS)
	 $(CC) $(LDFLAGS) -o $@ $(GITWIPE_OBJS) $(LIBS)

install:
	for i in $(GIT_BINS);\
	do\
	    rm -f $(bindir)/$$i;\
	    $(INSTALL_PROGRAM) $$i $(bindir)/$$i;\
	done
	for i in $(GIT_SCRIPTS);\
	do\
	    rm -f $(bindir)/$$i;\
	    $(INSTALL_PROGRAM) $(srcdir)/$$i $(bindir)/$$i;\
	done
	for i in $(GIT_RGREPS);\
	do\
	    rm -f $(bindir)/$$i;\
	    ln $(bindir)/gitrgrep $(bindir)/$$i;\
	done

install_strip:
	for i in $(GIT_BINS);\
	do\
	    rm -f $(bindir)/$$i;\
	    $(INSTALL_PROGRAM) -s $$i $(bindir)/$$i;\
	done
	for i in $(GIT_SCRIPTS);\
	do\
	    rm -f $(bindir)/$$i;\
	    $(INSTALL_PROGRAM) $(srcdir)/$$i $(bindir)/$$i;\
	done
	for i in $(GIT_RGREPS);\
	do\
	    rm -f $(bindir)/$$i;\
	    ln $(bindir)/gitrgrep $(bindir)/$$i;\
	done

dep:
	sed '/\#\#\# Dependencies/q' < Makefile.in > tmp_make
	(for i in *.c;\
	do\
	    $(CPP) -MM $$i;\
	done) >> tmp_make
	mv tmp_make Makefile.in

uninstall:
	-cd $(bindir) && rm -f $(GIT_BINS)
	-cd $(bindir) && rm -f $(GIT_SCRIPTS)
	-cd $(bindir) && rm -f $(GIT_RGREPS)

clean:
	-rm -f *.o *~ core* tutu* gogu* $(GIT_BINS)

mostlyclean: clean

distclean: clean
	-rm -f Makefile config.status config.log config.cache

realclean: distclean

tags:
	etags *.c *.h *.l *.y

etags:
	etags *.c *.h *.l *.y

### Dependencies
configure.o: configure.c file.h xstring.h stdc.h tty.h window.h \
 configure.h misc.h
fnmatch.o: fnmatch.c fnmatch.h
fsusage.o: fsusage.c xio.h stat.h stdc.h fsusage.h
git.o: git.c file.h stdc.h xstring.h xmalloc.h xio.h stat.h tty.h \
 window.h inputline.h status.h panel.h xstack.h configure.h signals.h \
 system.h history.h tilde.h misc.h
gitcmp.o: gitcmp.c file.h
gitkeys.o: gitkeys.c stdc.h xio.h stat.h
gitps.o: gitps.c file.h stdc.h xstring.h xmalloc.h tty.h window.h \
 configure.h tilde.h misc.h
gitview.o: gitview.c file.h stdc.h xstring.h xmalloc.h xio.h stat.h \
 window.h configure.h tty.h misc.h tilde.h
gitwipe.o: gitwipe.c file.h
history.o: history.c file.h xio.h stat.h stdc.h xstring.h history.h \
 xmalloc.h
inputline.o: inputline.c xstring.h stdc.h xmalloc.h configure.h \
 history.h tty.h window.h inputline.h tilde.h misc.h
misc.o: misc.c xstring.h stdc.h xmalloc.h configure.h file.h tty.h \
 window.h misc.h
panel.o: panel.c file.h stdc.h xstring.h xmalloc.h xio.h stat.h xid.h \
 fsusage.h window.h status.h signals.h tty.h inputline.h panel.h \
 xstack.h tilde.h fnmatch.h configure.h system.h misc.h
signals.o: signals.c signals.h stdc.h inputline.h window.h tty.h \
 misc.h
status.o: status.c xstring.h stdc.h xmalloc.h window.h status.h \
 configure.h tty.h misc.h
system.o: system.c xmalloc.h stdc.h xio.h stat.h tty.h window.h \
 signals.h inputline.h system.h misc.h
tilde.o: tilde.c xmalloc.h stdc.h xstring.h tilde.h
tty.o: tty.c file.h stdc.h xstring.h xmalloc.h xio.h stat.h tty.h \
 window.h misc.h
window.o: window.c window.h stdc.h xmalloc.h tty.h
xid.o: xid.c xstring.h stdc.h xmalloc.h xid.h
xio.o: xio.c xmalloc.h stdc.h xio.h stat.h
xmalloc.o: xmalloc.c xmalloc.h stdc.h
xstack.o: xstack.c xmalloc.h stdc.h xstring.h xstack.h
xstring.o: xstring.c xmalloc.h stdc.h xstring.h
