#
# Warning: the cpp used on this machine replaces
# all newlines and multiple tabs/spaces in a macro
# expansion with a single space.  Imake tries to
# compensate for this, but is not always
# successful.
#

#
# This makefile is automatically generated by imake... do not modify
# or you may lose your changes when imake generates makefiles again.
# Ignore this message if you are not using imake.
#

#
# The following comes from the macro file
#

        SYSTEM_H_FILE = Sun.system.h

        XBASEDIR =

        XSRCDIR = /x11

        DESTDIR = /usr/andrew
        BASEDIR = $(DESTDIR)
        CDEBUGFLAGS = -O

        INCLUDES =  -I${BASEDIR}/include/atk -I${BASEDIR}/include -I${XBASEDIR}/usr/include

        RESOLVLIB = /usr/lib/libresolv.a

        CLASS = ${BASEDIR}/bin/class
        MAKEDO = ${BASEDIR}/bin/makedo
        MAKEDOFLAGS = -g -d ${BASEDIR}/lib -b ${BASEDIR}/bin
        CLASSINCLUDES = ${INCLUDES}
        DEPENDSCRIPT = $(TOP)/config/depend.csh
        XMAKEDEPEND = $(XSRCDIR)/util/makedepend/makedepend

        IMAKE = $(XSRCDIR)/util/imake/imake
        XLIBDIR = $(XBASEDIR)/usr/lib
        OLDXLIB = $(XBASEDIR)/usr/lib/liboldX.a
        XINCDIR = $(XBASEDIR)/usr/include/X11
        IRULESRC = $(TOP)/config
        FDBWM = $(BASEDIR)/bin/fdbwm
        FDBBDF = $(BASEDIR)/bin/fdbbdf

        XFC = $(XBASEDIR)/usr/bin/X11/bdftosnf

        XMKFONTDIR = $(XBASEDIR)/usr/bin/X11/mkfontdir
        MACH = and

        TOP = ./../..
        AS = as
        CC = cc
        CPP = /lib/cpp
        LD = ld
        LINT = lint
        INSTALL = install
        TAGS = ctags
        RM = rm -f
        MV = mv
        CP = cp
        LN = ln -s
        RANLIB = ranlib
        AR = ar clq
        LS = ls
        AWK = awk
        SORT = sort
        TR = tr
        NM = nm
        MAKE = make
        SED = sed
        LEX = lex
        YACC = yacc
        SCRIBE = scribe
        LINTOPTS = -axz
        LINTLIBFLAG = -C
        STD_DEFINES =

#
# Back from the macro file
#

MACROFILE = Sun.macros

.SUFFIXES: .ih .eh .do .o .c .spp .s .H .snf .fwm .fdb .y .l .mss .PS

        CFLAGS = $(CDEBUGFLAGS) $(INCLUDES) $(STD_DEFINES) $(DEFINES)
        CLASSFLAGS = $(CLASSINCLUDES)
        LDFLAGS = $(CDEBUGFLAGS) $(SYS_LIBRARIES) $(SYSAUX_LIBRARIES)
        INSTUIDFLAGS = -c -m 4755
        INSTLIBFLAGS = -c -m 0664
        INSTINCFLAGS = -c -m 0444
        INSTMANFLAGS = -c -m 0444
        INSTAPPFLAGS = -c -m 0444
        INSTPROGFLAGS = -c -m 0555
        INSTDOFLAGS = -c -m 0444

        UTILLIB = ${BASEDIR}/lib/libutil.a

        MALLOCLIB = ${BASEDIR}/lib/libmalloc.a

        IMAKE_CMD = $(IMAKE) -I. -I$(IRULESRC) -s Makefile
        DOTDOTIMAKE_CMD = $(IMAKE) -I. -I../$(IRULESRC) -s Makefile

#
# The following comes from the rules file
#

#
# Back from the rules file
#

All:: all
Install:: install
install:: all
system: Install

dependInstall:: depend
	make install

dependAll:: depend
	make all

depend::
all::

clean::
	$(RM) \#* *.CKP *.ln *.BAK *.bak *.o *.dog *.do *.eh *.ih core errs ,* *~ *.a tags TAGS make.log  *.snf

Makefile:: Imakefile \
	$(IRULESRC)/andrewenv.h \
	$(IRULESRC)/Imake.template \
	$(IRULESRC)/Andrew.rules \
	$(IRULESRC)/$(MACROFILE)
	$(IMAKE_CMD) -DTOPDIR=$(TOP) ; \
	touch .depends ; \
	cat .depends >>Makefile

tags::
	$(TAGS) -w *.[ch]
	$(TAGS) -xw *.[ch] > TAGS

#
# The following comes from the local Imakefile
#

OBJS = MakePixmap.o  \
	arbitrator.o  \
	cwm.o  \
	cwmStubs.o  \
	profile.o  \
	window.o  \
	windowops.o

LIBS = $(BASEDIR)/lib/libcmenu.a  \
	${XLIBDIR}/libX11.a \
	${OLDXLIB}

depend::
	${DEPENDSCRIPT} ${XMAKEDEPEND} ${BASEDIR} ${XINCDIR} ${CC} ${CLASS} "-I. ${LOCALINCLUDES} ${INCLUDES}"

.c.o:
	$(RM) $@
	$(CC) -c -I. ${LOCALINCLUDES} $(CFLAGS) $*.c

all:: cwm

cwm:  ${OBJS}  ${LIBS}
	$(RM) $@
	$(CC) -o $@  ${OBJS}  ${LIBS}

clean::
	$(RM) cwm

install:: cwm
	${RM}  $(DESTDIR)/bin/cwm
	${LN} `pwd`/cwm  $(DESTDIR)/bin

#
# Back from the local Imakefile
#

Makefiles:: Makefile

##### DEPENDENCY LINE - DO NOT DELETE #####

