# Makefile for GNU makeinfo.  -*- Indented-Text -*-
# Copyright (C) 1993 Free Software Foundation, Inc.

CC = gcc -g
O = .o
A = .a
CFLAGS = -DOS2 -DHAVE_STRING_H -DHAVE_VFPRINTF -DHAVE_VSPRINTF
LIBS = ../libtxi/libtxi$A

OBJS = makeinfo$O
PROG = makeinfo.exe

all: $(PROG) makeinfo.info

.SUFFIXES: .c $O

.c$O:
	$(CC) $(CFLAGS) -c -I../libtxi $<

makeinfo.exe: $(OBJS) $(LIBS)
	$(CC) $(OBJS) -o $@ $(LIBS)

makeinfo$O: makeinfo.c ../libtxi/getopt.h

makeinfo.info: $(PROG) makeinfo.texi
	$(PROG) --no-split makeinfo.texi

clean:
	rm -f *.o *.obj *.info
