# Makefile generated by imake - do not edit!
# $XConsortium: imake.c,v 1.37 88/10/08 20:08:30 jim Exp $
#
# The cpp used on this machine replaces all newlines and multiple tabs and
# spaces in a macro expansion with a single space.  Imake tries to compensate
# for this, but is not always successful.
#

###########################################################################
# X Window System Makefile generated from template file Imake.tmpl
# $XConsortium: Imake.tmpl,v 1.91 88/10/23 22:37:10 jim Exp $
#
# Do not change the body of the imake template file.  Server-specific
# parameters may be set in the appropriate .macros file; site-specific
# parameters (but shared by all servers) may be set in site.def.  If you
# make any changes, you'll need to rebuild the makefiles using
# "make World" (at best) or "make Makefile; make Makefiles" (at least) in
# the top level directory.
#
# If your C preprocessor doesn't define any unique symbols, you'll need
# to set BOOTSTRAPCFLAGS when rebuilding imake (usually when doing
# "make Makefile", "make Makefiles", or "make World").
#
# If you absolutely can't get imake to work, you'll need to set the
# variables at the top of each Makefile as well as the dependencies at the
# bottom (makedepend will do this automatically).
#

###########################################################################
# platform-specific configuration parameters - edit Sun.macros to change

# platform:  $XConsortium: Sun.macros,v 1.52 88/10/23 11:00:55 jim Exp $
# operating system:  SunOS 3.4

BOOTSTRAPCFLAGS =
             AS = as
             CC = cc
            CPP = /lib/cpp
             LD = ld
           LINT = lint
        INSTALL = install
           TAGS = ctags
             RM = rm -f
             MV = mv
             LN = ln -s
         RANLIB = ranlib
RANLIBINSTFLAGS = -t
             AR = ar clq
             LS = ls
       LINTOPTS = -axz
    LINTLIBFLAG = -C
           MAKE = make
STD_CPP_DEFINES =
    STD_DEFINES =

###########################################################################
# site-specific configuration parameters - edit site.def to change

# site:  $XConsortium: site.def,v 1.16 88/10/12 10:30:24 jim Exp $

###########################################################################
# definitions common to all Makefiles - do not edit

          SHELL = /bin/sh

        DESTDIR =
      USRLIBDIR = $(DESTDIR)/usr/lib
         BINDIR = $(DESTDIR)/usr/bin/X11
         INCDIR = $(DESTDIR)/usr/include/X11
         ADMDIR = $(DESTDIR)/usr/adm
         LIBDIR = $(USRLIBDIR)/X11
     LINTLIBDIR = $(USRLIBDIR)/lint
        FONTDIR = $(LIBDIR)/fonts
       XINITDIR = $(LIBDIR)/xinit
         XDMDIR = $(LIBDIR)/xdm
         UWMDIR = $(LIBDIR)/uwm
         AWMDIR = $(LIBDIR)/awm
         TWMDIR = $(LIBDIR)/twm
        MANPATH = $(DESTDIR)/usr/man
  MANSOURCEPATH = $(MANPATH)/man
         MANDIR = $(MANSOURCEPATH)n
      LIBMANDIR = $(MANSOURCEPATH)3
    XAPPLOADDIR = $(LIBDIR)/app-defaults

   INSTBINFLAGS = -m 0755
   INSTUIDFLAGS = -m 4755
   INSTLIBFLAGS = -m 0664
   INSTINCFLAGS = -m 0444
   INSTMANFLAGS = -m 0444
   INSTAPPFLAGS = -m 0444
  INSTKMEMFLAGS = -m 4755
        FCFLAGS = -t
    CDEBUGFLAGS = -O

        PATHSEP = /
         DEPEND = $(DEPENDSRC)/makedepend
          IMAKE = $(IMAKESRC)/imake
            RGB = $(RGBSRC)/rgb
             FC = $(BDFTOSNFSRC)/bdftosnf
      MKFONTDIR = $(MKFONTDIRSRC)/mkfontdir
      MKDIRHIER = $(SCRIPTSSRC)/mkdirhier.sh

         CFLAGS = $(CDEBUGFLAGS) $(INCLUDES) $(STD_DEFINES) $(DEFINES)
      LINTFLAGS = $(LINTOPTS) $(INCLUDES) $(STD_DEFINES) $(DEFINES) -DLINT
        LDFLAGS = $(CDEBUGFLAGS) $(SYS_LIBRARIES) $(SYSAUX_LIBRARIES)
            TOP = ../.././../../..
      CLIENTSRC = $(TOP)/clients
        DEMOSRC = $(TOP)/demos
         LIBSRC = $(TOP)/lib
        FONTSRC = $(TOP)/fonts
     INCLUDESRC = $(TOP)/X11
      SERVERSRC = $(TOP)/server
        UTILSRC = $(TOP)/util
     SCRIPTSSRC = $(UTILSRC)/scripts
     EXAMPLESRC = $(TOP)/examples
     CONTRIBSRC = $(TOP)/contrib
         DOCSRC = $(TOP)/doc
         RGBSRC = $(TOP)/rgb
      DEPENDSRC = $(UTILSRC)/makedepend
       IMAKESRC = $(UTILSRC)/imake
       IRULESRC = $(UTILSRC)/imake.includes
        XLIBSRC = $(LIBSRC)/X
         XMUSRC = $(LIBSRC)/Xmu
     TOOLKITSRC = $(LIBSRC)/Xt
     AWIDGETSRC = $(LIBSRC)/Xaw
     OLDXLIBSRC = $(LIBSRC)/oldX
    BDFTOSNFSRC = $(FONTSRC)/bdftosnf
   MKFONTDIRSRC = $(FONTSRC)/mkfontdir
   EXTENSIONSRC = $(TOP)/extensions
   EXTENSIONLIB = $(EXTENSIONSRC)/lib/libXext.a
           XLIB = $(XLIBSRC)/libX11.a
         XMULIB = $(XMUSRC)/libXmu.a
        OLDXLIB = $(OLDXLIBSRC)/liboldX.a
       XTOOLLIB = $(TOOLKITSRC)/libXt.a
         XAWLIB = $(AWIDGETSRC)/libXaw.a
       LINTXLIB = $(XLIBSRC)/llib-lX11.ln
        LINTXMU = $(XMUSRC)/llib-lXmu.ln
      LINTXTOOL = $(TOOLKITSRC)/llib-lXt.ln
        LINTXAW = $(AWIDGETSRC)/llib-lXaw.ln
       INCLUDES = -I$(TOP)
      MACROFILE = Sun.macros
   ICONFIGFILES = $(IRULESRC)/Imake.tmpl \
			$(IRULESRC)/$(MACROFILE) $(IRULESRC)/site.def
  IMAKE_DEFINES =
      IMAKE_CMD = $(NEWTOP)$(IMAKE) -TImake.tmpl -I$(NEWTOP)$(IRULESRC) \
			-s Makefile $(IMAKE_DEFINES)
         RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a \
			.emacs_* tags TAGS make.log MakeOut

###########################################################################
# rules:  $XConsortium: Imake.rules,v 1.71 88/10/23 22:46:34 jim Exp $

###########################################################################
# start of Imakefile

#########################################################
# definitions common to all XJ Makefiles  - do not  edit

       WNNOWNER = wnn

      WNNBINDIR = $(DESTDIR)/usr/local/bin/Wnn4
      WNNWNNDIR = $(DESTDIR)/usr/local/lib/wnn

          XJTOP = $(CONTRIBSRC)/lib/XJ
         WNNSRC = $(CONTRIBSRC)/lib/Wnn
          FESRC = $(XJTOP)/frontend
   XJINCLUDESRC = $(XJTOP)/include
    XJCLIENTSRC = $(XJTOP)/clients
       XJLIBSRC = $(XJTOP)/lib
       XJDOCSRC = $(XJTOP)/doc
       XJEUCSRC = $(XJLIBSRC)/XJeuc
      XJPLIBSRC = $(XJLIBSRC)/XJp
      WNNETCSRC = $(WNNSRC)/etc
  WNNINCLUDESRC = $(WNNSRC)/include
     WNNJLIBSRC = $(WNNSRC)/jlib
   FEROMKANMSRC = $(FESRC)/romkan_m
     FEXWNMOSRC = $(FESRC)/xwnmo
   FEDICSERVSRC = $(FESRC)/dicserver
        FEJDSRC = $(FESRC)/jd

         XJPLIB = $(XJPLIBSRC)/libXJp.a
       XJEUCLIB = $(XJEUCSRC)/libXJeuc.a
         WNNLIB = $(WNNJLIBSRC)/libwnn.a
        WNNMLIB = $(FEROMKANMSRC)/libwnn_m.a

       XJSYSTEM = -DBSD42
         XJTERM = -DTERMCAP
     XJTERM_LIB = -ltermcap

#########################################################
# start of XJ's Imakefile

      XJDEFINES = $(XJSYSTEM) -DSUN -DINET

       INCLUDES = -I$(XJINCLUDESRC) -I$(TOP)
#        DEFINES = $(XJDEFINES) -DSYSFILE=\"$(UWMDIR)$(PATHSEP)system.uwmrc\" -DSHAPE -DEUC -DXJP
#LOCAL_LIBRARIES = $(XJPLIB) $(XJEUCLIB) $(EXTENSIONLIB) $(XLIB)
        DEFINES = $(XJDEFINES) -DSYSFILE=\"$(UWMDIR)$(PATHSEP)system.uwmrc\" -DEUC -DXJP
   INSTALLFLAGS = $(INSTBINFLAGS)
LOCAL_LIBRARIES = $(XJPLIB) $(XJEUCLIB) $(XLIB)
  SYS_LIBRARIES = -ll
      OTHERSRCS = gram.y lex.l
         YFLAGS = -d

SRCS= globals.c Beep.c Bindings.c CircleDown.c CircleUp.c \
      Cursors.c Focus.c GetButton.c  GridBox.c Iconify.c Icons.c Kill.c \
      Lower.c \
      Menu.c Move.c MoveOpaque.c NewIconify.c Pause.c Push.c Error.c \
      Raise.c Refresh.c Resize.c Restart.c RubberBand.c StoreBox.c \
      StoreZap.c XError.c uwm.c colormap.c windowinfo.c

OBJS= gram.o lex.o globals.o Beep.o Bindings.o CircleDown.o CircleUp.o \
      Cursors.o Focus.o GetButton.o GridBox.o Iconify.o Icons.o Kill.o \
      Lower.o \
      Menu.o Move.o MoveOpaque.o NewIconify.o Pause.o Push.o Error.o \
      Raise.o Refresh.o Resize.o Restart.o RubberBand.o StoreBox.o \
      StoreZap.o XError.o uwm.o colormap.o windowinfo.o

 PROGRAM = xjpuwm

all:: xjpuwm

xjpuwm: $(OBJS) $(LOCAL_LIBRARIES)
	$(RM) $@
	$(CC) -o $@ $(OBJS) $(LOCAL_LIBRARIES) $(LDFLAGS) $(SYSLAST_LIBRARIES)

relink::
	$(RM) $(PROGRAM)
	$(MAKE) $(MFLAGS) $(PROGRAM)

install:: xjpuwm
	$(INSTALL) -c $(INSTALLFLAGS) xjpuwm $(BINDIR)

install.man:: xjpuwm.man
	$(INSTALL) -c $(INSTMANFLAGS) xjpuwm.man $(MANDIR)/xjpuwm.n

depend:: $(DEPEND)

depend::
	$(DEPEND) -s "# DO NOT DELETE" -- $(CFLAGS) -- $(SRCS)

$(DEPEND):
	@echo "making $@"; \
	cd $(DEPENDSRC); $(MAKE)

clean::
	$(RM) $(PROGRAM)

clean::
	$(RM) y.tab.h y.tab.c lex.yy.c

gram.o: uwm.h

###########################################################################
# Imake.tmpl common rules for all Makefiles - do not edit

emptyrule::

clean::
	$(RM_CMD) \#*

Makefile:: $(IMAKE)

Makefile:: Imakefile \
	$(IRULESRC)/Imake.tmpl \
	$(IRULESRC)/Imake.rules \
	$(IRULESRC)/site.def \
	$(IRULESRC)/$(MACROFILE)
	-@if [ -f Makefile ]; then \
	echo "$(RM) Makefile.bak; $(MV) Makefile Makefile.bak"; \
	$(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
	else exit 0; fi
	$(IMAKE_CMD) -DTOPDIR=$(TOP)

$(IMAKE):
	@echo "making $@"; \
	cd $(IMAKESRC); $(MAKE) BOOTSTRAPCFLAGS=$(BOOTSTRAPCFLAGS)

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

###########################################################################
# empty rules for directories that do not have SUBDIRS - do not edit

install::
	@echo "install done"

install.man::
	@echo "install.man done"

Makefiles::

###########################################################################
# dependencies generated by makedepend

