# @(#)GNUmakefile.c	1.2 8/22/94 08:21:52
DRIVER = rtagif

include ../make.include
#include plotlist.h 

#
#  Source files in this directory (add any additional source files)
#
#    Example: CSOURCES = upd$(DRIVER).c cupdini.c cupdsys.c
#

FSOURCES = rtagif.f

CSOURCES = updgif.c cupdini.c cupdsys.c

#
#  If you need any additional object files, add them here
#

OTHERS = $(ARCOBJ)/aenterplot.o \
         $(ARCOBJ)/noxwin.o \
	 ../gd/gd1.2/libgd.a

#
#  If you need any additional library files, add them here
#

OURLIBS = -laplib -larclib -lapclib -lgclib -laclib -lelib

#
#  Some needed variables (these should not need to be changed)
#

PROGRAM    = $(DRIVER)

#
#  The make logic (you may need to add additional source dependencies here)
#

local: $(PROGRAM)

install: $(PROGRAMLOC)$(PROGRAM)

$(PROGRAM): $(OBJECTS) $(SOURCELOC)GNUmakefile $(LIBCHK)
	@ echo installing local
	$(f-link)

$(PROGRAMLOC)$(PROGRAM): $(OBJECTS) $(SOURCELOC)GNUmakefile $(LIBCHK)
	@ echo installing
	$(f-link)
	$(install-program)

object: $(OBJECTS)

$(DRIVER).o: $(SOURCELOC)$(DRIVER).f
	@ $(FC) -c $(FFLAGS) $(SOURCELOC)$(DRIVER).f

upd$(DRIVER).o: $(SOURCELOC)upd$(DRIVER).c
	@ $(CC) -c $(CFLAGS) $(SOURCELOC)upd$(DRIVER).c

cupdini.o: $(SOURCELOC)cupdini.c
	@ $(CC) -c $(CFLAGS) $(SOURCELOC)cupdini.c

cupdsys.o: $(SOURCELOC)cupdsys.c
	@ $(CC) -c $(CFLAGS) $(SOURCELOC)cupdsys.c

#
#   Example of an additional source and include file:
#
# mysource.o: $(SOURCELOC)mysource.c $(SOURCELOC)myinclude.inc
#       @ $(CC) -c $(CFLAGS) $(SOURCELOC)mysource.c
#

clean: FORCE
	$(RM) $(OBJECTS) $(PROGRAM)

FORCE:
