#-------------------------------------------------
# variables
#-------------------------------------------------

ifeq ($(TARGET),mingw)

ROOT   ?= $(shell pwd)/../../..
OBJDIR := $(ROOT)/gen/obj
CC     := mingw32-gcc
CFLAGS := -I /localapp/cross-gcc/cygwin/i686-pc-cygwin/include/mingw/

endif 

#-------------------------------------------------
# rules
#-------------------------------------------------

ifneq ($(TARGET),mingw)

all:

endif 

#-------------------------------------------------
# targets
#-------------------------------------------------

ifeq ($(TARGET),mingw)

regex.o: regex.c
	$(CC) -I. $(CFLAGS) -DHAVE_STRING_H -o $(OBJDIR)/$@ -c $<

endif
