# This Makefile is used to build a Tcl module from the GIFPlot library.
# Change the location of SWIG and Tcl below

CC        = @CC@
SWIG      = swig
IDIR      = ../Interface
IFILE     = gifplot.i
ISRC      = $(IFILE:.i=_wrap.c)
IOBJ      = $(ISRC:.c=.o)
TARGET    = gifplot
INCLUDE   = -I../Include 
TCLINCLUDE = -I/usr/local/include
SO        = sl
LDSHARED  = @LDSHARED@
CCSHARED  = @CCSHARED@

all:	$(ISRC) mandel
	$(CC) $(CCSHARED) -c $(ISRC) $(INCLUDE) $(TCLINCLUDE) 
	$(LDSHARED) $(IOBJ) -L.. -lgifplot -o $(TARGET).$(SO)

$(ISRC): $(IDIR)/$(IFILE)
	$(SWIG) -tcl -dnone -o $(ISRC) $(IDIR)/$(IFILE)

mandel::
	$(SWIG) -tcl -dnone -I../Interface mandel.i
	$(CC) $(CCSHARED) -c mandel_wrap.c $(INCLUDE) $(TCLINCLUDE)
	$(LDSHARED) mandel_wrap.o -L.. -lgifplot -o mandel.$(SO)

clean:
	rm -f *.o *.so *.sl *_wrap* *~ *.gif $(IDIR)/*_wrap*





syntax highlighted by Code2HTML, v. 0.9.1