# XGusMix Makefile
# (C) 1996 Andy Lo A Foe

include ../../Makefile.conf

ifndef ARCH_COPTS
ARCH_COPTS = -O2
endif

OBJS=gusmix.o tkgus.o

# select compiler (and flags)

CC=gcc -pipe $(ARCH_COPTS) $(INCLUDE_X11) $(INCLUDE_TCLTK)

# library stuff

LIBS=-L../../lib -lgus $(LIB_TCLTK) -lm $(LIB_X11) $(LIB_DL)

gcompile: tclgus

tclgus: $(OBJS)
	gcc -o tclgus $(OBJS) $(LIBS)
	ls -l tclgus

syscheck: tcltkcheck.o
	gcc -o tcltkcheck tcltkcheck.o

gusmix.o: gusmix.c gusmix.h
tkgus.o: tkgus.c tkgus.c 

clean:
	rm -f $(OBJS) tclgus tcltkcheck.o tcltkcheck *~
