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

CC = gcc -g
O = .o
A = .a
AR = ar
RANLIB = ar s
CFLAGS = -DOS2 -DHAVE_STRING_H -DHAVE_VFPRINTF -DHAVE_VSPRINTF

OBJS =  getopt$O getopt1$O $(ALLOCA) pc$O termcap$O tparam$O
PROGS = libtxi$A

all: $(PROGS)

.SUFFIXES: .c $O

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

libtxi$A: $(OBJS)
	rm -f $@
	$(AR) crv libtxi$A $(OBJS)
	$(RANLIB) libtxi$A

getopt$O: getopt.c getopt.h
getopt1$O: getopt1.c getopt.h
alloca$O: alloca.c

clean:
	rm -f *.o *.obj *.a *.lib
