# $Id: Makefile,v 1.10 1996/06/18 06:53:22 dhb Exp $
# $Log: Makefile,v $
# Revision 1.10  1996/06/18 06:53:22  dhb
# Removed explicit setting of CC macro which was probably benign
# since CC is set on the make command line taking precedence over
# the Makefile setting.
#
# Revision 1.9  1996/06/06  23:05:36  dhb
# Now use AR macro for archive command.
#
# Revision 1.8  1995/06/16  05:55:37  dhb
# Moved comment character commenting lines of the HEADERS macro
# to the first character of the line.  This is required for some
# versions of make.
#
# Revision 1.7  1995/03/17  23:11:39  venkat
# Included XoComposit.o to the list of OBJS
#
# Revision 1.6  1995/02/22  01:37:23  venkat
# Added XoCore.o to the list of OBJS
#
# Revision 1.5  1995/02/13  21:21:10  dhb
# Removed checkout of RCSRELEASE versions.
#
# Revision 1.4  1995/01/09  23:40:06  dhb
# Commented nonportable COMPILE.c macro and added CPPFLAGS to CFLAGS.
#
# Revision 1.3  1994/12/19  22:22:39  dhb
# Added rules for RCS subdirectory.
#
# Revision 1.2  1994/12/06  02:04:49  dhb
# Added install target and ranlib handling.
#
# Revision 1.1  1994/12/06  00:15:26  dhb
# Initial revision
#
# Revision 1.4  1994/04/11  23:16:50  dhb
# Missing tab at beginning of RCS checkout actions
#
# Revision 1.3  1994/04/11  22:30:47  dhb
# Missing some include dirs on RCS checkout actions
#
# Revision 1.2  1994/04/11  21:15:04  dhb
# Added RCS checkout rules
#
# Revision 1.1  1994/04/11  17:42:49  dhb
# Initial revision
#

CPPFLAGS  = -I..
CFLAGS    = $(TOPFLAGS) $(CPPFLAGS)
LIBS      = -lXt -lXext -lX11
# COMPILE.c = $(CC) $(CFLAGS) $(CPPFLAGS) -c

WIDGETS   = \
	Label.o \
	Frame.o \
	Framed.o \
	XoCore.o \
	XoComposit.o \
	Form.o \
	Button.o \
	Text.o \
	Dialog.o \
	Image.o \
	xgifload.o
OBJS      = $(WIDGETS) \
    FormLayout.o

#Label.o: LabelP.h Label.h
#Frame.o: FrameP.h Frame.h
#Framed.o:	Framed.h FramedP.h 
#Form.o:	Form.h FormP.h
#Button.o:	Button.h ButtonP.h
#Text.o:	Text.h TextP.h
#Dialog.o:	Dialog.h DialogP.h
#Image.o: Image.h ImageP.h
#
#HEADERS = \
#	../Xo/XoDefs.h \
#	LabelP.h Label.h \
#	FrameP.h Frame.h \
#	Framed.h FramedP.h  \
#	Form.h FormP.h \
#	Button.h ButtonP.h \
#	Text.h TextP.h \
#	Dialog.h DialogP.h \
#	Image.h ImageP.h

#$(OBJS): ../Xo/XoDefs.h

# I have to force a compile here every time a header is changed
#.c.o:
# $(CC) $(CFLAGS) $(CPPFLAGS) $< -c


libWidg.a: $(OBJS) $(HEADERS)
	$(AR) r libWidg.a $(OBJS)
	$(RANLIB) libWidg.a

XoFormLayout.o: Form.h

clean:
	-(rm -rf *.[oa])

install:
	cp libWidg.a $(INSTALL)/lib
	$(RANLIB) $(INSTALL)/lib/libWidg.a
