# Generated automatically from Makefile.in by configure.
#
# This file is a Makefile for Tix.  If it has the name "Makefile.in"
# then it is a template for a Makefile;  to generate the actual Makefile,
# run "./configure", which is a configuration script generated by the
# "autoconf" program (constructs like "@foo@" will get replaced in the
# actual Makefile.
#

#----------------------------------------------------------------
# Things you can change to personalize the Makefile for your own
# site (you can make these changes in either Makefile.in or
# Makefile, but changes to Makefile will get lost if you re-run
# the configuration script).
#----------------------------------------------------------------



# ET programmers: if you have moved the Tix source directory around
# you may need to change the following definition to where the Tix
# library is (the Tix library contains the file Tix.tcl, among other 
# files)
#
TIX_LIBRARY_DIR=	/home/ioi/dev/tix/dev/library

# A "-I" switch that can be used when compiling to make all of the
# X11 include files accessible (the configure script will try to
# set this value, and will cause it to be an empty string if the
# include files are accessible via /usr/include).
X11_INCLUDES =	-I/usr/X11R6/include

# Linker switch(es) to use to link with the X11 library archive (the
# configure script will try to set this value automatically, but you
# can override it).
X11_LIB_SWITCHES = -L/usr/X11R6/lib -lX11

# Libraries to use when linking:  must include at least Tix, Tcl, Xlib,
# and the math library (in that order).  The "" part will be
# replaced (or has already been replaced) with relevant libraries as
# determined by the configure script.
LIBS = ../unix-tk4.0/libtix.a /home/ioi/dev/tix/tk4.0/libtk.a /home/ioi/dev/tix/tcl7.4/libtcl.a \
    $(X11_LIB_SWITCHES)  -lieee -lm

# To change the compiler switches, for example to change from -O
# to -g, change the following line:
CFLAGS = -g

# To disable ANSI-C procedure prototypes reverse the comment characters
# on the following lines:
PROTO_FLAGS =
#PROTO_FLAGS = -DNO_PROTOTYPE

# To enable memory debugging reverse the comment characters on the following
# lines.  Warning:  if you enable memory debugging, you must do it
# *everywhere*, including all the code that calls Tcl, and you must use
# ckalloc and ckfree everywhere instead of malloc and free.
MEM_DEBUG_FLAGS =
#MEM_DEBUG_FLAGS = -DTCL_MEM_DEBUG

# Some versions of make, like SGI's, use the following variable to
# determine which shell to use for executing commands:
SHELL =		/bin/sh

#----------------------------------------------------------------
# The information below is modified by the configure script when
# Makefile is generated from Makefile.in.  You shouldn't normally
# modify any of this stuff by hand.
#----------------------------------------------------------------

AC_FLAGS =		 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DSTDC_HEADERS=1 -DTK_FILE_READ_PTR=1   -DTIX_DEBUG 
SRC_DIR =		/home/ioi/dev/tix/dev
INC_DIR =		/home/ioi/dev/tix/dev/include

#----------------------------------------------------------------
# The information below should be usable as is.  The configure
# script won't modify it and you shouldn't need to modify it
# either.
#----------------------------------------------------------------

CC =		cc
CC_SWITCHES =	${CFLAGS} -I${INC_DIR} -I/home/ioi/dev/tix/tcl7.4 -I/home/ioi/dev/tix/tk4.0 \
${X11_INCLUDES} \
${AC_FLAGS} ${PROTO_FLAGS} ${SECURITY_FLAGS} ${MEM_DEBUG_FLAGS} \


all: et2c etixwish

.SUFFIXES: .et

ET_FLAGS = -I/home/ioi/dev/tix/tcl7.4/library -I/home/ioi/dev/tix/tk4.0/library

et2c: et2c.c
	$(CC) -I/home/ioi/dev/tix/tcl7.4 -I/home/ioi/dev/tix/tk4.0 et2c.c -o $@

etixInit.et: etixInit.et.dist
	cat etixInit.et.dist | sed -e 's|TIX_DIR|${TIX_LIBRARY_DIR}|' > etixInit.et

etixAppInit.c: etixAppInit.et
	./et2c $(ET_FLAGS) etixAppInit.et > etixAppInit.c

etixInit.c: etixInit.et bitmaps.c
	./et2c $(ET_FLAGS) etixInit.et > etixInit.c

et40.c : et40.et
	./et2c $(ET_FLAGS) et40.et > et40.c

bitmaps.c : makebitmap.tcl
	makebitmap.tcl ${TIX_LIBRARY_DIR}/bitmaps > bitmaps.c

OBJS = et40.o etixInit.o etixAppInit.o

etixwish: $(OBJS)
	$(CC) $(CC_SWITCHES) $(OBJS)  $(LIBS) -o etixwish

install::
	@echo nothing to be done

Makefile: Makefile.in
	cd $(SRC_DIR); $(SHELL) config.status

clean:
	rm -f *.a *.o core errs *~ \#* TAGS *.E a.out errors tixwish \
		config.info Makefile.bak etixAppInit.c bitmaps.c etixInit.c \
		et40.c et2c etixwish

# Now I want to preserve the Makefile on my machine somehow
#
distclean: clean
	rm -f Makefile Makefile.bak config.status config.cache etixInit.et

depend:
	makedepend -- $(CC_SWITCHES) -- $(SRCS)

.c.o:
	$(CC) -c $(CC_SWITCHES) $<

# DO NOT DELETE THIS LINE -- make depend depends on it.

