#$Header: /cvsroot/posix2/posix2/libext/libc/stdiox/Makefile,v 1.4 2000/04/17 08:23:42 veit Exp $

INC = ../../include/

AR     = ar rc
EMXOMF = emxomf
RANLIB = ar s
RM     = rm -f

.SUFFIXES:
.SUFFIXES: .a .aux .c .cpp .cxx .C .def .dll .dvi .exe .hlp .inf .ipf \
           .lib .log .map .o .obj .rc .res .tex .toc
.PHONY: clean default distclean

CC = gcc
DEBUG    = -g -O2 -mpentium -D_DEBUG -DDEBUG

WFLAGS   = -Wall -W -Wmissing-prototypes -Wshadow -Wcast-align \
   -Wpointer-arith -Winline -Wconversion -Wmissing-declarations  
DEFINES  = -D__ST_MT_ERRNO__ -Zmt 
INCLUDE  = -I. -I$(INC) -I$(X11ROOT)/XFree86/include
CFLAGS  = $(DEFINES) $(DEBUG) $(WFLAGS) $(INCLUDE)


SRCS = popen.c setbuffer.c # fgetln.c 
OBJS = $(SRCS:.c=.o)

all: $(OBJS) 

# dependencies
$(OBJS): $(INC)stdiox.h $(INC)sys/errnox.h local.h

clean:
	$(RM) *.a *.lib *.o *.obj core a.out
