#-----------------------------------------------------------------------
#   Makefile for HP X Widgets
#   
#   This Makefile compiles and generates the library ../lib/libXw.a
#   on Hewlett-Packard 9000 workstations.  Necessary modifications for
#   DEC and Sun workstations are shown in comments.  Other Makefiles
#   in this release will need to modified similarly.
#   
#   Note:  The HP X Widgets library depends on the HP version of 
#          X11R2 Xt Intrinsics (see ../Xt).
#-----------------------------------------------------------------------
CCROOT=/
CC=$(CCROOT)/bin/cc
AS=$(CCROOT)/bin/as
AR=$(CCROOT)/bin/ar
LD=$(CCROOT)/bin/ld

INCRT = ../
LIBNAME = ../lib/libXw.a
CFLAGS = -O -DSYSV -Wc,-Nd4000 -Wc,-Ns4000 -I../
# DEC and Sun
#CFLAGS = -O -I../

FILES =\
	Arrow.o\
	BBoard.o\
	Button.o\
	Cascade.o\
	CreateTile.o\
	Display.o\
	Form.o\
	ImageEdit.o\
	List.o\
	ListRC.o\
	Manager.o\
	MapEvents.o\
	MenuBtn.o\
	MenuMgr.o\
	MenuPane.o\
	MenuSep.o\
	PButton.o\
	Panel.o\
	PopupMgr.o\
	Primitive.o\
	RCManager.o\
	ResConvert.o\
	SRaster.o\
	SText.o\
	SWindow.o\
	Sash.o\
	ScrollBar.o\
	SourceDsk.o\
	SourceStr.o\
	TextEdit.o\
	TitleBar.o\
	Toggle.o\
	Traversal.o\
	VPW.o\
	Valuator.o\
	WClassing.o\
	WorkSpace.o


all:	$(LIBNAME) 

.PRECIOUS:	$(LIBNAME)

$(LIBNAME):	$(FILES)
	rm -f $(LIBNAME)
	$(AR) clq $(LIBNAME) $(FILES)
	ranlib $(LIBNAME)

.s.a:
	$(AS) -o $*.o $<

.c.o:
	$(CC) $(INCRT) -c $(CFLAGS) $<

clean:
	-rm -f *.o

clobber:	clean
	-rm -f $(LIBNAME)

Display.o:\
	$(INCRT)/Xw/Xw.h\
	$(INCRT)/Xw/XwP.h\
	$(INCRT)/Xw/TextEditP.h\
	$(FRC)


TextEdit.o:\
	$(INCRT)/Xw/Xw.h\
	$(INC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