# Generated automatically from Makefile.os2 by configure.
# This file makes the web2c library routines.

O = .obj
A = .lib
X = .exe
S = .dll

SHELL = /bin/sh
srcdir = .
VPATH = .

# Unlike all other directories, we need -DHAVE_CONFIG_H here because we need
# -DHAVE_CONFIG_H to compile getopt.
CC = gcc
CFLAGS = -g
CPPFLAGS = -DHAVE_CONFIG_H -I../lib -I../..

AR = emxomfar
ARFLAGS = cq
RANLIB = $(AR) s

# Name of the file we make.
lib = lib$A

# We don't make `openinout.o' or `texmf.o', since TeX and Metafont need
# to use different routine names, hence they need different .o files.
objs = eofeoln$O fprintreal$O getopt$O getopt1$O inputint$O main$O \
  ourpaths$O strpascal$O uexit$O version$O xfopen-pas$O zround$O keymap$O


.SUFFIXES: $O .c 
.c$O:
	$(CC) $(CPPFLAGS) $(CFLAGS) -c $<

default: all
triptrap: all

all: $(lib)

$(lib): $(objs)
	-rm -f $(lib)
	$(AR) $(ARFLAGS) $(lib) $(objs)
	$(RANLIB) $(lib)

# Do not use CPPFLAGS for this, because including "config.h" might
# result in a conflicting decl of xmalloc. How annoying.
alloca$O: alloca.c 
	$(CC) $(CFLAGS) -c alloca.c

Makefile: Makefile.os2 ../config.status
	(cd ..; $(SH) config.status)

install install-exec install-data:

$(srcdir)/../lib/c-auto.h.in: $(srcdir)/../lib/c-auto.h.start \
                              $(configure_in) $(autoheader) 
	-rm -f $(srcdir)/../lib/c-auto.h.in
	cd $(srcdir)/../lib; cp c-auto.h.start c-auto.h.in
	echo '/* Below here generated by autoheader.  */' \
	  >>$(srcdir)/../lib/c-auto.h.in
	@echo 'GLUERATIO_TYPE will not be covered.'
	-cd $(srcdir)/..; autoheader configure.in >>lib/c-auto.h.in

c-auto.h: $(srcdir)/../lib/c-auto.h.os2
	cd $(srcdir)/../lib; cp c-auto.h.os2 c-auto.h

TAGS: *.c *.h
	etags -t *.c *.h


mostlyclean::
	-rm -f *$O $(program) $(lib) $(programs)

clean:: mostlyclean
	-rm -f *.dvi *.pool

distclean:: clean
	-rm -f Makefile config.status c-auto.h

# Although we can remake configure and c-auto.h.in, we don't remove
# them, since many people may lack Autoconf.  Use configclean for that.
realclean:: distclean
	-rm -f TAGS *.info*

extraclean::
	-rm -f *.aux *.bak *.bbl *.blg *.dvi *.log *.orig *.pl *.rej
	-rm -f *.i *.s *.tfm *.vf *.vpl *\#* *gf *pk *~
	-rm -f CONTENTS.tex a.out core mfput.* patch* texput.*

configclean:
	-rm -f configure c-auto.h.in c-auto.h


# Prevent GNU make 3 from overflowing arg limit on system V.
.NOEXPORT:

# Dependencies.
eofeoln$O: eofeoln.c config.h getopt.h ourpaths.h c-auto.h
fprintreal$O: fprintreal.c config.h getopt.h ourpaths.h c-auto.h
getopt$O: getopt.c config.h getopt.h ourpaths.h c-auto.h
getopt1$O: getopt1.c config.h getopt.h ourpaths.h c-auto.h
inputint$O: inputint.c config.h getopt.h ourpaths.h c-auto.h
main$O: main.c config.h getopt.h ourpaths.h c-auto.h
ourpaths$O: ourpaths.c config.h getopt.h ourpaths.h c-auto.h
strpascal$O: strpascal.c config.h getopt.h ourpaths.h c-auto.h
uexit$O: uexit.c config.h getopt.h ourpaths.h c-auto.h
xfopen-pas$O: xfopen-pas.c config.h getopt.h ourpaths.h c-auto.h
zround$O: zround.c config.h getopt.h ourpaths.h c-auto.h
keymap$O: keymap.c config.h getopt.h ourpaths.h c-auto.h
