ARCHCFLAGS	=	-mno-cygwin -DHASSTDLIB -DWIN32 -DSYSVBFUNC -DSYSVSTR \
				-DHASERRORVARS -DNOWAIT3 -DNOGETDTBLSIZ -DNOUNIXDOM \
				-DNOTMPNAM -DMAXHOSTNAMELEN=64 -DMAXPATHLEN=64 \
				-DNEEDSFFS \
				-I$(PVM_ROOT)/include -I$(PVM_ROOT)/tracer -I$(PVM_ROOT)/src

ARCHDLIB	=	 -mwindows -lwsock32 -lkernel32  -lgdi32 -lwinspool -lcomdlg32 \
				-ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lm 

ARCHDOBJ	= 
ARCHLIB		=	-mwindows -lwsock32 -lkernel32  -lgdi32 -lwinspool -lcomdlg32 \
				-ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lm 
HASRANLIB	=	t
AR		=	ar
PVM_ARCH	=	MINGW
MAKE		=	make
EXESFX		=	.exe
FC		=	g77
CC		=	gcc

ADDEDOBJ	= 	xdr_mem.o xdr_floa.o xdr.o pvmwin.o ming_pvmregex.o ming_regex.o

HOSTER_MING=-void


# files to be added for mingw 

%.o : ../%.c 
	$(CC) $(CFLAGS) -c  $<

xdr_mem.o:  ../../xdr/xdr_mem.c
	$(CC) $(CFLAGS) -c  ../../xdr/xdr_mem.c

xdr_floa.o:  ../../xdr/xdr_floa.c
	$(CC) $(CFLAGS) -c $(SDIR)/../xdr/xdr_floa.c

xdr.o:  ../../xdr/xdr.c
	$(CC) $(CFLAGS) -c $(SDIR)/../xdr/xdr.c

ming_pvmregex.o:  ../regex/pvmregex.c 
	$(CC) $(CFLAGS) -c $<  -o $@

ming_regex.o:  ../regex/regex.c 
	$(CC) $(CFLAGS) -c $< -o $@



