# Generated automatically from Makefile.in by configure.

###############################################################################
#									      #
# 		 Makefile for GNU Interactive Tools 4.3.7		      #
#      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.7"


srcdir		= .

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

SHELL		= /bin/sh
CFLAGS		= -g -O -Wall -I. -I.. -I$(srcdir) -I$(srcdir)/..
LDFLAGS		= 
CPPFLAGS	=  -I. -I.. -I$(srcdir) -I$(srcdir)/..
DEFS		= -DHAVE_CONFIG_H -DHOST=\"i386-unknown-linux\" -DTERM_DIRECTORY=\"$(termdir)\"\
		  -DPRODUCT=\"$(PRODUCT)\" -DVERSION=\"$(VERSION)\"
LIBS		=  -ltermcap
CC		= gcc
CPP		= gcc -E $(CPPFLAGS) $(DEFS)
INSTALL		= /usr/bin/install -c
INSTALL_PROGRAM	= ${INSTALL}
INSTALL_DATA	= ${INSTALL} -m 644
HOST		= i386-unknown-linux


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\
		  xtimer.o xstack.o system.o fsusage.o fnmatch.o
GITCMP_OBJS	= gitcmp.o
GITMATCH_OBJS	=  gitmatch.o fnmatch.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 gitmatch gitwipe
GIT_SCRIPTS	= gitmount gitaction gitredir gitrgrep .gitaction


all:	$(GIT_BINS)

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

.c.o:
	$(CC) -c $(CFLAGS) $(DEFS) $(srcdir)/$*.c

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)

gitmatch: $(GITMATCH_OBJS)
	  $(CC) $(LDFLAGS) -o $@ $(GITMATCH_OBJS) $(LIBS)

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

install:
	for i in $(GIT_BINS);\
	do\
	    $(INSTALL_PROGRAM) -s $$i $(bindir)/$$i;\
	done
	for i in $(GIT_SCRIPTS);\
	do\
	    $(INSTALL_PROGRAM) $(srcdir)/$$i $(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)

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

mostlyclean: clean

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

realclean: distclean


### 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 xtimer.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 
gitmatch.o : gitmatch.c fnmatch.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 xtimer.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 xtimer.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 xtimer.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 
xtimer.o : xtimer.c xmalloc.h stdc.h xstring.h xtimer.h misc.h 
