From RZ13%DLRVM.bitnet@relay.eu.net Mon Feb  1 14:56:47 1993
Received: by breslau.ap.mchp.sni.de;
	Mon, 1 Feb 93 14:56:46 +0100
Received: from thoth.mchp.sni.de by horus with SMTP id AA12763
  (5.65c/IDA-1.4.4 for <David.Smyth@ap.mchp.sni.de>); Mon, 1 Feb 1993 14:52:09 +0100
Received: from mcsun.EU.net by thoth.mchp.sni.de with SMTP id AA21121
  (5.65c/IDA-1.4.4 for <David.Smyth@ap.mchp.sni.de>); Mon, 1 Feb 1993 14:45:12 +0100
Received: from DEARN by mcsun.EU.net with SMTP
	id AA00313 (5.65b/CWI-2.205); Mon, 1 Feb 1993 14:45:06 +0100
Message-Id: <9302011345.AA00313@mcsun.EU.net>
Received: from VM.Op.DLR.De by DEARN (Mailer R2.10 ptf000) with BSMTP id 3603;
 Mon, 01 Feb 93 14:40:30 MET
Received: from DLRVM (RZ13) by VM.Op.DLR.De (Mailer R2.08) with BSMTP id 4848;
 Mon, 01 Feb 93 14:43:36 MEZ
Date:         Mon, 01 Feb 93 11:20:03 MEZ
From: Klaus Kretschel <RZ13@dlrvm.bitnet>
Subject:      Re: Wcl 2.2
To: David Smyth <David.Smyth@ap.mchp.sni.de>
In-Reply-To:  Your message of Thu, 28 Jan 1993 11:12:08 +0100 (MET)
Status: OR

In Wcl 2.4 XAPPLRESDIR works fine, thank you.

I append 2 *.tmpl files that work with AIX 3.2 and MakeByHand; the only
thing else needed is the dummy X11 directory structure as distributed
with Wcl 2.2, since AIXWindows  (i.e. X11R4) comes with the old structure.
Would be nice if you would add them (maybe modified) to the distribution.

   -------------------------- cut here ----------------------------

###########################################################################
# SCCS_data:       @(#) WcMake1.tmpl 1.8 92/06/10 11:28:25
#
# Half of the things you need to tailor to port Wcl to a new platform
# when you do not have Imake.  WcMake2.tmpl has the other half.
#

###########################################################################
# Hacks for various release levels of your X and Xt system:
# If X11R3.5 (i.e., Motif 1.0 Xt) these need to be uncommented:
# MRI_APPDEF_DEFS = -DMOTIF_100
#     OLD_XT_SRCS = Xt4GetResL.c XtMacros.c XtName.c
#     OLD_XT_OBJS = Xt4GetResL.o XtMacros.o XtName.o
#       BROKEN_XT = -DXtNameToWidgetBarfsOnGadgets

###########################################################################
# If early X11R4 where XtNameToWidget barfs on Gadgets, uncomment these
#     OLD_XT_SRCS = XtName.c
#     OLD_XT_OBJS = XtName.o
#       BROKEN_XT = -DXtNameToWidgetBarfsOnGadgets

###########################################################################
# Comment out any widget sets you do not have.
#
    WcATHENA = Xp Ari
#  WcCORNELL = Xcp Cri
     WcMOTIF = Xmp Mri
#WcOPEN_LOOK = Xop Ori

###########################################################################
# Special Flags for compiling files which use widget libraries
#
   XP_LIB_OPTS =
  XCP_LIB_OPTS =
# XMP_LIB_OPTS = -D_OLD_MOTIF
  XMP_LIB_OPTS = -D_NO_PROTO
  XOP_LIB_OPTS = -I/usr/openwin/include -I/usr/openwin/include/Xol

###########################################################################
# The location of your X include files and libraries, and where Wcl
# libraries and programs will be installed.
#
# Typical R5 locations:
#     INCROOT = /usr/X11R5/include
#      INCDIR = $(INCROOT)/X11
#   USRLIBDIR = /usr/X11R5/lib
#      LIBDIR = $(USRLIBDIR)/X11
# XAPPLOADDIR = $(LIBDIR)/app-defaults
#      BINDIR = /usr/X11R5/bin

# Typical R4 and R3 locations:
      INCROOT = /usr/include
       INCDIR = $(INCROOT)/X11
    USRLIBDIR = /usr/lib
       LIBDIR = $(USRLIBDIR)/X11
  XAPPLOADDIR = $(LIBDIR)/app-defaults
       BINDIR = /usr/bin
#
# Typical SunOS locations:
#     INCROOT = /usr/openwin/include
#      INCDIR = $(INCROOT)/X11
#   USRLIBDIR = /usr/openwin/lib
#      LIBDIR = $(USRLIBDIR)
# XAPPLOADDIR = $(USRLIBDIR)/app-defaults
#      BINDIR = /usr/openwin/bin

       X_LIBS = -L$(USRLIBDIR) -L/usr/lpp/X11/Xamples/lib/Xaw

###########################################################################
# If you are building for SunOS or SVR4, these must be uncommented
#
#        DYNLIB = -ldl
#DYN_LINK_FLAGS = -DWC_HAS_dlopen_AND_dlsym
#       WcSTUFF = Stuff

###########################################################################
# Names of libraries
#
# Widget Libraries
#
             XAWLIB = -lXaw
             XCULIB = -lXcu
              XMLIB = -lXm
#             XMLIB = -lXm -lgen
#             XMLIB = -lXm -lPW
             XOLLIB = -lXol
#
# Wcl Distribution Libraries
#
              WCLIB = -lWc $(DYNLIB)
           WCLDFLAG = -L$(WCTOPDIR)/Wc
              XPLIB = -lXp
           XPLDFLAG = -L$(WCTOPDIR)/Xp
             XCPLIB = -lXcp
          XCPLDFLAG = -L$(WCTOPDIR)/Xcp
             XMPLIB = -lXmp
          XMPLDFLAG = -L$(WCTOPDIR)/Xmp
             XOPLIB = -lXop
          XOPLDFLAG = -L$(WCTOPDIR)/Xop -L/usr/openwin/lib
#
# X11 Libraries
#
             XMULIB = -lXmu
           XTOOLLIB = -lXt
       EXTENSIONLIB = -lXext
               XLIB = $(EXTENSIONLIB) -lX11

###########################################################################
# Many systems install Motif under /usr/include instead of the new-for-R5
# standard location .../X11/Xm.  Wcl2.x tries to be complient to the
# latest standard, hence it explicitly looks for files named, for example,
# <X11/Xm/Xm.h>.  So, perhaps you need to uncomment these:
#
  LOCAL_X11_XM_DIR = ./X11/Xm
  GET_ALL_XM_INCLUDES = ln -s /usr/include/Xm ./X11/Xm
# GET_ALL_XM_INCLUDES = mkdir ./X11/Xm ; ln /usr/include/Xm/* ./X11/Xm
# GET_ALL_XM_INCLUDES = mkdir ./X11/Xm ; cp /usr/include/Xm/* ./X11/Xm

###########################################################################
# Only a very poorly configured system (like SCO) needs this
#
# LOCAL_STRINGS_H = ./strings.h
# GET_LOCAL_STRINGS_H = ln /usr/include/string.h ./strings.h
# GET_LOCAL_STRINGS_H = cp /usr/include/string.h ./strings.h

###########################################################################
# If you are building for SunOS, uncomment this.  It really means that
# the printf() supports %digit$ for specifying argument number.
  WONDER_PRINTF = -DSUNOS_PRINTF

###########################################################################
# The C compiler to use
#
  CC = cc
# CC = LD_RUN_PATH=$(USRLIBDIR) ; export LD_RUN_PATH ; /usr/ccs/bin/cc
# CC = gcc -fstrength-reduce -fpcc-struct-return

###########################################################################
# The Loader to use
#
  LD = cc
# LD = LD_RUN_PATH=$(USRLIBDIR) ; export LD_RUN_PATH ; /usr/ccs/bin/cc

###########################################################################
# The C pre-processor to use for app-defaults files
#
  CPP = /lib/cpp

###########################################################################
# For putting library include files in ./X11/$(LIB) for easy access
#
  LN = ln -s
# LN = ln

###########################################################################
# The owner of installed programs, include files, and libraries
#
  OWNER = rz13

###########################################################################
# Access flags for installed files
#
     INSTDIRFLAGS = 0755
     INSTBINFLAGS = 0755
     INSTLIBFLAGS = 0644
     INSTINCFLAGS = 0444
     INSTMANFLAGS = 0444
  INSTAPPDEFFLAGS = 0444

###########################################################################
# Man page locations and suffixes
#
     PGMMANDIR = /usr/man/man1
#    PGMMANDIR = /usr/man/X11/mann
  PGMMANSUFFIX = 1
     LIBMANDIR = /usr/man/man3
#    LIBMANDIR = /usr/man/X11/mann
  LIBMANSUFFIX = 3

   -------------------------- cut here ----------------------------

###########################################################################
# SCCS_data:       @(#) WcMake2.tmpl 1.10 92/06/10 09:11:42
#
# The other half of the things you need to tailor to port Wcl to a new
# platform # when you do not have Imake.  WcMake1.tmpl has the first half.
#
# This file gets included by the subdirectory Makefiles of programs
# (Ari, Cri, Mri, and Ori) after they set the following:
# CLIENT_INCS CLIENT_LIBS SYS_LIBRARIES
#
# This file gets included by the subdirectory Makefiles of libraries
# (Wc, Xp, Xcp, Xop, and Xmp) after they set the following:
# LIBRARY_NAME OBJS
#

  WCL_VER = 2.2

###########################################################################
# Wcl libraries, and everything after client libraries
#
  WCL_LIBS = $(WCLIB) $(XMULIB) $(XTOOLLIB) $(XLIB)
# WCL_LIBS = $(WCLIB) $(XTOOLLIB) $(XLIB)

# LAST_LIBS = -lsocket
# LAST_LIBS = -lsocket -lnsl -lc -L/usr/ucblib -lucb

LOCAL_LIBRARIES = $(CLIENT_LIBS) $(WCL_LIBS) $(SYS_LIBRARIES) $(LAST_LIBS)
  LOCAL_LDFLAGS = $(CLIENT_LDFLAGS) $(WCLDFLAG) $(X_LIBS)

###########################################################################
# Library File Name
#
#LIBRARY_FILE = lib$(LIBRARY_NAME).so
 LIBRARY_FILE = lib$(LIBRARY_NAME).a

###########################################################################
# This will be used for all compilations from .c.o for libraries
#
    ALL_INCS = $(CLIENT_INCS) -I.. -I$(INCROOT)

#CFLAGS_LIBS = -O  $(ALL_INCS) -DSUNSHLIB -DSHAREDCODE -pic
#CFLAGS_LIBS = -O  $(ALL_INCS)
#CFLAGS_LIBS = -O  $(ALL_INCS) -KPIC -Xc -DNARROWPROTO
#CFLAGS_LIBS = -O  $(ALL_INCS) -KPIC -Xc -DNARROWPROTO -DSVR4 -DSNI
 CFLAGS_LIBS = -O  $(ALL_INCS) -DSYSV -DAIXV3
#CFLAGS_LIBS = -Ox $(ALL_INCS)
#CFLAGS_LIBS = -g  $(ALL_INCS)
#CFLAGS_LIBS = -g  $(ALL_INCS) -DXTTRACEMEMORY

###########################################################################
# This will be used for all compilations from .c.o for applications
#
#CFLAGS_PROG = -O  -pipe $(ALL_INCS) -target sun4
#CFLAGS_PROG = -O  $(ALL_INCS)
 CFLAGS_PROG = -O  $(ALL_INCS) -DSYSV -DAIX3
#CFLAGS_PROG = -O  $(ALL_INCS) -Xc -DNARROWPROTO
#CFLAGS_PROG = -O  $(ALL_INCS) -Xc -DNARROWPROTO -DSVR4 -DSNI
#CFLAGS_PROG = -Ox $(ALL_INCS)

###########################################################################
# This will be used for all compilations from .c.o for test applications
#
 CFLAGS_TEST = -g  -pipe $(ALL_INCS)
#CFLAGS_TEST = -g  -pipe $(ALL_INCS) -DXTTRACEMEMORY
#CFLAGS_TEST = -g  $(ALL_INCS) -Xc -DNARROWPROTO -DSVR4 -DSNI
 CFLAGS_TEST = -g  $(ALL_INCS) -DSYSV -DAIX3

###########################################################################
# Command To Build Libraries (and run ranlib if necessary)
#
#MKLIB_CMD = ld -o $(LIBRARY_FILE).$(WCL_VER) -assert pure-text $(OBJS)
#MKLIB_CMD = rm -f $(LIBRARY_FILE).$(WCL_VER) ; \
$(LD) -o $(LIBRARY_FILE).$(WCL_VER) -G -z text -h \
$(LIBRARY_FILE).$(WCL_VER) $(OBJS) ; rm -f $(LIBRARY_FILE) ; \
ln -s $(LIBRARY_FILE).$(WCL_VER) $(LIBRARY_FILE)
#MKLIB_CMD = ar clq $(LIBRARY_FILE) $(OBJS) ; ranlib $(LIBRARY_FILE)
 MKLIB_CMD = ar clq $(LIBRARY_FILE) $(OBJS)

###########################################################################
# Command To Install Libraries
#
  CP_LIB = mv
# CP_LIB = rm -f $(DESTDIR)$(USRLIBDIR)/$(LIBRARY_FILE).$(WCL_VER) \
$(DESTDIR)$(USRLIBDIR)/$(LIBRARY_FILE) ; mv $(LIBRARY_FILE).$(WCL_VER) \
$(DESTDIR)$(USRLIBDIR)/$(LIBRARY_FILE).$(WCL_VER) ; \
ln -s $(DESTDIR)$(USRLIBDIR)/$(LIBRARY_FILE).$(WCL_VER) \
$(DESTDIR)$(USRLIBDIR)/$(LIBRARY_FILE) ; echo moved
# CP_LIB = cp -p
# CP_LIB = ar clq $(DESTDIR)$(USRLIBDIR)/$(LIBRARY_FILE) $(OBJS)

###########################################################################
# Command to update libraries after installation
#
# RANLIB = ranlib
# RANLIB = echo Done with

###########################################################################
# This will be used to link applications
#
#LDFLAGS_PROG = -O -pipe $(LOCAL_LDFLAGS) $(LOCAL_LIBRARIES)
 LDFLAGS_PROG = $(LOCAL_LDFLAGS) $(LOCAL_LIBRARIES)

###########################################################################
###########################################################################
###########################################################################
# You probably never need to edit anything below here
#
  SHELL = /bin/sh
   MAKE = make -f MakeByHand

