#	$Header: /cvsroot/posix2/posix2/libext/libc/regex/Makefile,v 1.1 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

# flags section

DEFINES  = -D__ST_MT_ERRNO__ -DPOSIX_MISTAKE

DEBUG     = -g -O2 -mpentium -DDEBUG -DTHREAD_EXPERIMENTAL \
   -D_USE_HRTIMER_SYS -D_CPYFILE_FOR_SYMLINK -D_DEBUG 

WFLAGS   = -Wall -W -Wmissing-prototypes -Wshadow -Wcast-align \
   -Wpointer-arith -Winline -Wmissing-declarations  \
   -Wstrict-prototypes -Wconversion
INCLUDE  = -I. -I$(INC) 
CFLAGS  = $(DEFINES) $(DEBUG) $(WFLAGS) $(INCLUDE)

SRCS    = regcomp.c regerror.c regexec.c regfree.c cname.c

# Has to be adapted to the used suffix(es)
OBJS    = $(SRCS:.c=.o) 

all: $(OBJS) 


# dependencies
$(OBJS): engine.c cclass.h cname.h regex2.h utils.h $(INC)regex.h


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