
OBJ =	gxfopen.o gxf_proj4.o gxf_ogcwkt.o \
	\
	cpl_error.o cpl_vsisimple.o cpl_string.o cpl_conv.o

CFLAGS = @CFLAGS@
LIBS 	= @LIBS@ -lm
CC	= @CC@


default:	8211view

libgxf3.a:	$(OBJ)
	ar r libgxf3.a $(OBJ)

cpl_error.o:	cpl_error.c
	$(CC) -c $(CFLAGS) cpl_error.c

cpl_string.o:	cpl_string.c
	$(CC) -c $(CFLAGS) cpl_string.c

cpl_conv.o:	cpl_conv.c
	$(CC) -c $(CFLAGS) cpl_conv.c

cpl_vsisimple.o:	cpl_vsisimple.c
	$(CC) -c $(CFLAGS) cpl_vsisimple.c

#
#	Mainlines
#

gxftest:	gxftest.c libgxf3.a
	$(CC) $(CFLAGS) gxftest.c libgxf3.a $(LIBS) -o gxftest

