Make.proto
author Claus Gittinger <cg@exept.de>
Fri, 30 Jan 1998 12:24:57 +0100
changeset 1440 6a68adba9c33
parent 1326 aab1605ad945
child 1629 04c5cc863e8a
permissions -rw-r--r--
allow configuration of diff command; preset correctly for UNIX & MSDOS

# $Header: /cvs/stx/stx/libtool/Make.proto,v 1.55 1997-09-20 22:42:11 cg Exp $

# -------------- no need to change anything below ----------

#
# there is one speciality to be found below:
#
#  SBrowser became too big to be compiled on hp and NeXT
#  (and also takes up too much disk-space in the tmp-directory
#   for a typical sun installation).
#  Therefore, it is compiled in two pieces - this should
#  work on all systems.
#  
TOP=..
SUBDIRS=

LIBNAME=libtool

STCOPT=$(LIBTOOL_STCOPT)
STCLOCALOPT='-package=stx:libtool' $(COMMONSYMBOLS) +optspace3 $(SEPINITCODE) -varPrefix=$(LIBNAME)
LINKOBJRULE=$(SEPINITLINKOBJRULE)

RCSSOURCES=*.st Make.proto resources/*.rs bitmaps/*.xbm

all::       classLibRule

O=$(O2)

OBSOLETEOBJS=  \
	    OldLauncher.$(O)

xxAUTOLOADEDOBJS= \
	    AboutBox.$(O)			\
	    DiffTxtV.$(O)			\
	    Diff3TxtV.$(O)			\
	    EvMonitor.$(O)			\
	    ImgInspV.$(O)			\
	    MemMonitor.$(O)			\
	    MemUsageV.$(O)			\
	    ProjectV.$(O)			\
	    ProcMonitor.$(O)			\
	    ClrInspV.$(O)

OBJS=  \
	    $(SBROWSER_OBJ)                     \
	    $(CBROWSER_OBJ)                     \
	    DebugView.$(O)                      \
	    Launcher.$(O)                    \
	    InspView.$(O)                       \
	      SetInspV.$(O)                     \
	      DictInspV.$(O)                    \
	      ConInspV.$(O)                     \
	      OCInspView.$(O)                   \
	    $(FBROWSER_OBJ)                     \
	    $(DIRBROWSER_OBJ)

cleanjunk::
	    -rm -f *.c *.H

clean::
	    -rm -f [A-Z]*.o *.c *.H

clobber::
	    -rm -f *.c *.H classList.stc abbrev.stc

AIX::
	$(MAKE) OPT= BrwsrView.o
	$(MAKE) OPT= FBrowser.o

#
# on HP, big classes blow the C-preprocessor (stops with 'too much defining' error)
#
#HP::    HPbigFiles
#
#HPbigFiles:
#	$(MAKE) $(BIG_STFILE_RULE) BIG_FILE=BrwsrView CC=$(CC) OPT="$(OPT)"
#	$(MAKE) $(BIG_STFILE_RULE) BIG_FILE=CBrowser CC=$(CC) OPT="$(OPT)"
#	$(MAKE) $(BIG_STFILE_RULE) BIG_FILE=DebugView CC=$(CC) OPT="$(OPT)"
#	$(MAKE) $(BIG_STFILE_RULE) BIG_FILE=Launcher CC=$(CC) OPT="$(OPT)"

tar:
	(cd $(TOP); tar cvfh DISTRIB/libtool.tar \
				libtool/.dir.info \
				libtool/Make.proto \
				libtool/*.st \
				libtool/resources/.dir.info \
				libtool/resources/*.rs \
				libtool/bitmaps)

#
# special BIG-rule (kludge for HP)
#

BrwsrView.$(O):
	$(MAKE) $(BIG_STFILE_RULE) BIG_FILE=BrwsrView OPT="$(OPT)"

FBrowser.$(O):
	$(MAKE) $(BIG_STFILE_RULE) BIG_FILE=FBrowser OPT="$(OPT)"

BrwsrView.o2: BrwsrView.o
	cp BrwsrView.o BrwsrView.o2

xxLauncher.$(O):
	$(MAKE) $(BIG_STFILE_RULE) BIG_FILE=Launcher

xxCBrowser.$(O):
	$(MAKE) $(BIG_STFILE_RULE) BIG_FILE=CBrowser

xxDebugView.$(O):
	$(MAKE) $(BIG_STFILE_RULE) BIG_FILE=DebugView

#
# next thing I'll build into stc is a makedepend feature for this ...
#

# BEGINMAKEDEPEND --- do not remove this line; make depend needs it
AboutBox.o: AboutBox.st $(STCHDR)
BrwsrView.o: BrwsrView.st $(STCHDR)
CBrowser.o: CBrowser.st $(STCHDR)
ChgSetBrwsr.o: ChgSetBrwsr.st $(STCHDR)
ClassInspV.o: ClassInspV.st $(STCHDR)
ClrInspV.o: ClrInspV.st $(STCHDR)
ConInspV.o: ConInspV.st $(STCHDR)
DebugView.o: DebugView.st $(STCHDR)
SetInspV.o: SetInspV.st $(STCHDR)
DictInspV.o: DictInspV.st $(STCHDR)
DiffTxtV.o: DiffTxtV.st $(STCHDR)
Diff3TxtV.o: Diff3TxtV.st $(STCHDR)
DirBrwsr.o: DirBrwsr.st $(STCHDR)
EvMonitor.o: EvMonitor.st $(STCHDR)
FBrowser.o: FBrowser.st $(STCHDR)
ImgInspV.o: ImgInspV.st $(STCHDR)
InspView.o: InspView.st $(STCHDR)
Launcher.o: Launcher.st $(STCHDR)
MemMonitor.o: MemMonitor.st $(STCHDR)
MemUsageV.o: MemUsageV.st $(STCHDR)
OldLauncher.o: OldLauncher.st $(STCHDR)
OCInspView.o: OCInspView.st $(STCHDR)
SystemStatusMonitor.o: SystemStatusMonitor.st $(STCHDR)
ProcMonitor.o: ProcMonitor.st $(STCHDR)
SemaphoreMonitor.o: SemaphoreMonitor.st $(STCHDR)
ProjectV.o: ProjectV.st $(STCHDR)
SBrowser.o: SBrowser.st $(STCHDR)
# ENDMAKEDEPEND --- do not remove this line; make depend needs it