#
# makefile to build the c & fortran rexx library using mingw gcc
#


CFLAGS=-pipe -march=pentiumpro -mdll -I/ptjm/rexx/regina
FFLAGS=-pipe -march=pentiumpro -mdll
LDFLAGS=-Wl,--enable-stdcall-fixup

ffunc.dll : ffunc.o cbase.o ffunc.def
		g77 $(FFLAGS) $(LDFLAGS) ffunc.o cbase.o ffunc.def -o ffunc.dll

ffunc.o : ffunc.f
	g77 $(FFLAGS) -c ffunc.f

cbase.o : cbase.c
	gcc $(CFLAGS) -c cbase.c
