INC = ../../include/


CC = gcc
DEBUG    = -g -O2 -mpentium 

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)

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

SRCS = popen.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
