
ARCHCFLAGS = -DCYGWIN -DHASSTDLIB -DSYSVBFUNC -DNOTMPNAM -DHASREADLINE \
 -DSYSVSTR -DNOGETDTBLSIZ -DNOUNIXDOM -DNOREXEC -DFDSETNOTSTRUCT \
 -DNEEDSFFS -DSTDC_HEADERS -DARCHCLASS=\"WIN32\" -DRSHCOMMAND=\"rsh\" \
 -DNO_NETINET_TCP_H -DUSESTRERROR

ARCHDLIB	=	
#-L/usr/local/lib -lrpclib
ARCHDOBJ	=
ARCHLIB		=	
#-L/usr/local/lib -lrpclib
HASRANLIB	=	t
AR			=	ar
PVM_ARCH	=	CYGWIN
MAKE		=	make
EXESFX		=	.exe
FC			=	g77

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

# 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 $@

