home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 January
/
usenetsourcesnewsgroupsinfomagicjanuary1994.iso
/
sources
/
x
/
volume2
/
xtools
/
patch1
/
Makefile.bak
next >
Wrap
Makefile
|
1993-04-28
|
5KB
|
167 lines
#
# 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.
#
TOP = ./../..
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
AR = ar clq
LS = ls
LINTOPTS = -axz
LINTLIBFLAG = -C
MAKE = make
STD_DEFINES =
CDEBUGFLAGS = -O
DESTDIR =
PATHSEP = /
DEPEND = $(DEPENDSRC)/makedepend
IMAKE = $(IMAKESRC)/imake
RGB = $(RGBSRC)/rgb
CFLAGS = $(CDEBUGFLAGS) $(INCLUDES) $(STD_DEFINES) $(DEFINES)
LINTFLAGS = $(LINTOPTS) $(INCLUDES) $(STD_DEFINES) $(DEFINES) -DLINT
LDFLAGS = $(CDEBUGFLAGS) $(SYS_LIBRARIES) $(SYSAUX_LIBRARIES)
INSTUIDFLAGS = -m 4555
INSTLIBFLAGS = -m 0444
INSTINCFLAGS = -m 0444
INSTMANFLAGS = -m 0444
INSTAPPFLAGS = -m 0444
USRLIBDIR = $(DESTDIR)/tuna_a/x11/lib
BINDIR = $(DESTDIR)/tuna_a/x11/bin
LIBDIR = $(USRLIBDIR)
LINTLIBDIR = $(USRLIBDIR)/lint
INCDIR = $(DESTDIR)/tuna_a/x11/include
FONTDIR = $(LIBDIR)/fonts
UWMDIR = $(LIBDIR)/uwm
MANDIR = $(DESTDIR)/tuna_a/x11/man/mann
XAPPLOADDIR = $(LIBDIR)/app-defaults
ADMDIR = $(DESTDIR)/tuna_a/x11/adm
CLIENTSRC = $(TOP)/clients
DEMOSRC = $(TOP)/demos
LIBSRC = $(TOP)/lib
FONTSRC = $(TOP)/fonts
INCLUDESRC = $(TOP)/X11
SERVERSRC = $(TOP)/server
UTILSRC = $(TOP)/util
EXAMPLESRC = $(TOP)/examples
CONTRIBSRC = $(TOP)/contrib
DOCSRC = $(TOP)/doc
DEPENDSRC = $(UTILSRC)/makedepend
IMAKESRC = $(UTILSRC)/imake
IRULESRC = $(UTILSRC)/imake.includes
RGBSRC = $(UTILSRC)/rgb
XLIBSRC = $(LIBSRC)/X
TOOLKITSRC = $(LIBSRC)/Xt
AWIDGETSRC = $(LIBSRC)/Xaw
OLDXLIBSRC = $(LIBSRC)/oldX
EXTENSIONSRC = $(TOP)/extensions
XMANSRC = $(DOCSRC)/Xlib/Xman
EXTENSIONLIB = $(EXTENSIONSRC)/lib/libXext.a
XLIB = $(XLIBSRC)/libX11.a
OLDXLIB = $(OLDXLIBSRC)/liboldX.a
XTOOLLIB = $(TOOLKITSRC)/libXt.a
XAWLIB = $(AWIDGETSRC)/libXaw.a
LINTXLIB = $(XLIBSRC)/llib-lX11.ln
LINTXTOOL = $(TOOLKITSRC)/llib-lXt.ln
LINTXAW = $(AWIDGETSRC)/llib-lXaw.ln
INCLUDES = -I$(TOP)
MACROFILE = Sun.macros
IMAKE_CMD = $(NEWTOP)$(IMAKE) -TImake.tmpl \
-I$(NEWTOP)$(IRULESRC) \
-s Makefile
RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a \
tags TAGS make.log
INCLUDES = -I$(TOP) -I$(TOP)/X11
LOCAL_LIBRARIES = $(XAWLIB) $(XTOOLLIB) $(XLIB)
DEFAULT_STARTUP = $(LIBDIR)/xtools_startup
STD_DEFINES = -DDEFAULT_STARTUP=\"$(DEFAULT_STARTUP)\" -Duse_popup
SRCS = top_setup.c home_setup.c quit_button.c help_button.c \
confirm_setup.c main.c client_start.c globs.c parse.c \
yep_button.c nope_button.c setenv.c
OBJS = top_setup.o home_setup.o quit_button.o help_button.o \
confirm_setup.o main.o client_start.o globs.o parse.o \
yep_button.o nope_button.o setenv.o
PROGRAM = xtools
all:: xtools
xtools: $(OBJS) $(LOCAL_LIBRARIES)
$(RM) $@
$(CC) -o $@ $(OBJS) $(LOCAL_LIBRARIES) $(LDFLAGS)
relink::
$(RM) $(PROGRAM)
$(MAKE) $(MFLAGS) $(PROGRAM)
install:: xtools
$(INSTALL) -c $(INSTALLFLAGS) xtools $(BINDIR)
install:: xtools.man
$(INSTALL) -c $(INSTMANFLAGS) xtools.man $(MANDIR)/xtools.n
depend:: $(DEPEND)
depend::
$(DEPEND) -s "# DO NOT DELETE" -- $(CFLAGS) -- $(SRCS)
$(DEPEND):
@echo "making $(DEPENDSRC)"; \
cd $(DEPENDSRC); $(MAKE)
clean::
$(RM) $(PROGRAM)
install:: XTools.ad
$(INSTALL) -c $(INSTAPPFLAGS) XTools.ad $(XAPPLOADDIR)/XTools
clean::
$(RM_CMD) \#*
Makefile:: $(IMAKE)
Makefile:: Imakefile \
$(IRULESRC)/Imake.tmpl \
$(IRULESRC)/Imake.rules \
$(IRULESRC)/$(MACROFILE)
-$(RM) Makefile.bak; $(MV) Makefile Makefile.bak
$(IMAKE_CMD) -DTOPDIR=$(TOP)
$(IMAKE):
@echo "making $(IMAKESRC)"; \
cd $(IMAKESRC); $(MAKE)
tags::
$(TAGS) -w *.[ch]
$(TAGS) -xw *.[ch] > TAGS
install::
@echo "install done"
Makefiles::