#-*- Makefile -*-
include ../gnuwin32/MkRules

all: makeMakedeps ../gnuwin32/libmain.a

CFLAGS=$(OPTFLAGS) -I../include -DHAVE_CONFIG_H -DR_DLL_BUILD
FFLAGS=$(OPTFLAGS)
CSOURCES=$(filter-out alloca.c par-common.c qsort-body.c snprintf.c strdup.c \
           strncasecmp.c vsnprintf.c, $(wildcard *.c))
FSOURCES=$(wildcard *.f)
OBJS=$(CSOURCES:.c=.o) $(FSOURCES:.f=.o) 

gram.c: ;

saveload-CFLAGS=-I../extra/xdr
connections-CFLAGS=-I../extra/zlib -I../extra/bzip2
dounzip-CFLAGS=-I../extra/zlib
character-CFLAGS=-I../extra/pcre -DSTATIC
pcre-CFLAGS=-I../extra/pcre -DSTATIC


../gnuwin32/libmain.a: $(OBJS)

# Dependencies
DEPS=$(CSOURCES:.c=.d)

makeMakedeps: $(DEPS)
	@$(RM) Makedeps
	@cat $(DEPS) >> Makedeps

-include Makedeps
