PGM = v.spag

BUILD_LIB = ../v.build/libbuild.a

#	use -DRAM_OFF if you do not want the digit file loaded into memory
#	for optimization,   this is also toggle-able from the command line if -DRAM_ON is used



OFILES2 = \
	linecros.o \
	main.o \
	new_line.o \
	spag.o 

OFILES = \
	compress.o \
	remove.o \
	break2.o \
	graphic.o \
	intersect.o \
	main2.o \
	new_line.o \
	linecros.o \
	spag2.o 

CFILES2 = \
	\
	break.c \
	linecros.c \
	intersect.c \
	new_line.c \
	main.c \
	remove.c \
	spag.c

CFILES = \
	compress.c \
	linecros.c \
	new_line.c \
	remove.c \
	break2.c \
	intersect.c \
	main2.c \
	spag2.c 

#  write_ascii.o in OFILES is just for debugging

B_A_OFILES = \
	ascii_io.o \
	b_a_plus.o \
	write_ascii.o 

LIBES=$(VECTLIB) $(VECTLIB_REAL) $(DIG2LIB) $(GISLIB) $(DIG_ATTLIB)
DEPLIBS=$(DEPVECTLIB) $(DEPVECTLIB_REAL) $(DEPDIG2LIB) $(DEPGISLIB) $(DEPDIG_ATTLIB)
PACKAGE = "v.spag"
DEFS = -Wall -DPACKAGE=\"$(PACKAGE)\"
EXTRA_CFLAGS    = $(DEFS)

$(BIN_CMD)/$(PGM): $(OFILES) $(BUILD_LIB) $(DEPLIBS)
	$(CC) $(LDFLAGS) -o $@ $(OFILES) $(BUILD_LIB) $(LIBES) $(MATHLIB) $(XDRLIB)

$(BUILD_LIB) $(DEPVECTLIB) $(DEPGISLIB) $(DEPDIG_ATTLIB): #
