# MAKEFILE:
# library Makefile
#
#   Copyright (C)  1993  The Board of Trustees of  
#   The Leland Stanford Junior University.  All Rights Reserved.
#
# Authors: Scott Louis Francis and Paul Kunz
#
# Special Note:  The X11R5/include path was removed from the following line,
# I believe so it would compile on DEC.  Motif.h, included *everywhere*
# cannot find <Xm/Xm.h> without that include path.  Please, if you remove
# that portion of the CFlags, make sure that <Xm/Xm.h> is found when you
# compile on a sun!!  Much pain will be avoided:) Thanks!


TARGLIB = ../libobjcX.a
CC = gcc

# OpenStep directory
OSDIR = ..

#
# Define the following if desired
#
# X11R5		- have release 5 version of the header files
# HAVE_LIBTIFF	- have Sam Leffler's tiff library (with patches for streams)
#		  (for NXBitmapImageRep)
#
DEFINES = -DX11R5
#DEFINES = -DHAVE_LIBTIFF

# Location of the DLD include files (if not in a standard path)
DLDINCLUDE = -I$(OSDIR)/../dld

# Location of the TIFF include files (if not in a standard path)
TIFFINCLUDE = -I$(OSDIR)/../tiff/libtiff

CINCLUDES = -I.. -I/usr/local/X11R5/include $(DLDINCLUDE) $(TIFFINCLUDE)
CFLAGS = -g -Wall $(CINCLUDES) $(DEFINES)
MAKEDEPEND = ../makedepend

#---------------------------- end of configuration -----------------------

SOURCES = *.[cm]

# Specify all the members to be included in the library

LIBMEMS = $(TARGLIB)(ActionCell.o) \
	  $(TARGLIB)(Application.o) \
	  $(TARGLIB)(Box.o) \
	  $(TARGLIB)(Button.o) \
	  $(TARGLIB)(ButtonCell.o) \
	  $(TARGLIB)(Cell.o) \
	  $(TARGLIB)(ClipView.o) \
	  $(TARGLIB)(Control.o) \
	  $(TARGLIB)(CustomObject.o) \
	  $(TARGLIB)(CustomView.o) \
	  $(TARGLIB)(FontManager.o) \
	  $(TARGLIB)(Form.o) \
	  $(TARGLIB)(FormCell.o) \
	  $(TARGLIB)(IBConnectors.o) \
	  $(TARGLIB)(MList.o) \
	  $(TARGLIB)(Matrix.o) \
	  $(TARGLIB)(Menu.o) \
	  $(TARGLIB)(MenuCell.o) \
	  $(TARGLIB)(NXCachedImageRep.o) \
	  $(TARGLIB)(NXBitmapImageRep.o) \
	  $(TARGLIB)(NXBrowser.o) \
	  $(TARGLIB)(NXBrowserCell.o) \
	  $(TARGLIB)(NXBundle.o) \
	  $(TARGLIB)(NXColorWell.o) \
	  $(TARGLIB)(NXImage.o) \
	  $(TARGLIB)(NXImageRep.o) \
	  $(TARGLIB)(OpenPanel.o) \
	  $(TARGLIB)(Panel.o) \
	  $(TARGLIB)(PopUpList.o) \
	  $(TARGLIB)(PrintInfo.o) \
	  $(TARGLIB)(Responder.o)\
	  $(TARGLIB)(SavePanel.o) \
	  $(TARGLIB)(ScrollView.o) \
	  $(TARGLIB)(Scroller.o) \
	  $(TARGLIB)(Slider.o) \
	  $(TARGLIB)(SliderCell.o) \
	  $(TARGLIB)(Text.o) \
	  $(TARGLIB)(TextField.o) \
	  $(TARGLIB)(TextFieldCell.o) \
	  $(TARGLIB)(View.o) \
	  $(TARGLIB)(Window.o) \
	  $(TARGLIB)(graphics.o) \
	  $(TARGLIB)(objcX.o) \
	  $(TARGLIB)(object-ivars.o) \
	  $(TARGLIB)(publicWraps.o) \
	  $(TARGLIB)(tiff.o) \
	  $(TARGLIB)(xmBox.o) \
	  $(TARGLIB)(xmButtonCell.o) \
	  $(TARGLIB)(xmCell.o) \
	  $(TARGLIB)(xmFormCell.o) \
	  $(TARGLIB)(xmForm.o) \
	  $(TARGLIB)(xmMenuCell.o) \
	  $(TARGLIB)(xmMenu.o) \
	  $(TARGLIB)(xmResponder.o) \
	  $(TARGLIB)(xmPopUpList.o) \
	  $(TARGLIB)(xmSavePanel.o) \
	  $(TARGLIB)(xmScroller.o) \
	  $(TARGLIB)(xmSliderCell.o) \
	  $(TARGLIB)(xmTextFieldCell.o) \
	  $(TARGLIB)(xmView.o) \
	  $(TARGLIB)(xmWindow.o) \
	  $(TARGLIB)(xtApplication.o) \
	  $(TARGLIB)(xtNXBitmapImageRep.o) \
	  $(TARGLIB)(xtNXCachedImageRep.o) \
	  $(TARGLIB)(xtNXImage.o) \
	  $(TARGLIB)(xtNXImageRep.o)

# And now the inference rulse, archiving the .o files into the library.

.SUFFIXES : .m .c
.m.a:
	$(CC) ${CFLAGS} $(OTHER_CFLAGS) -c -o $% $<
	ar rv $@ $%
	rm -f $%

.c.a:
	$(CC) $(CFLAGS) $(OTHER_CFLAGS) -c -o $% $<
	ar rv $@ $%
	rm -f $%

.PRECIOUS: $(TARGLIB)

# the targets

all : lib

lib: $(TARGLIB)

$(TARGLIB) : $(LIBMEMS)
	ranlib $@

clean:
	$(RM) -f $(TARGLIB) *.~

depend:
	$(MAKEDEPEND) -p$(TARGLIB)\( -o.o\) $(CINCLUDES) -I. $(SOURCES)

	
# DO NOT DELETE THIS LINE -- make depend depends on it.
 
../libobjcX.a(ActionCell.o) : ActionCell.m ActionCell.h Cell.h graphics.h Control.h View.h \
  Responder.h Motif.h 
../libobjcX.a(Application.o) : Application.m Application.h Responder.h graphics.h defaults.h \
  Menu.h Panel.h Window.h screens.h NXBundle.h PrintInfo.h stdmacros.h 
../libobjcX.a(Box.o) : Box.m Box.h View.h Responder.h graphics.h Motif.h TextFieldCell.h ActionCell.h \
  Cell.h stdmacros.h 
../libobjcX.a(Button.o) : Button.m Button.h Control.h View.h Responder.h graphics.h Motif.h \
  ActionCell.h Cell.h ButtonCell.h sysparams.h stdmacros.h PopUpList.h Menu.h \
  Panel.h Window.h screens.h 
../libobjcX.a(ButtonCell.o) : ButtonCell.m ButtonCell.h ActionCell.h Cell.h graphics.h sysparams.h \
  NXBundle.h Application.h Responder.h View.h Motif.h Window.h screens.h 
../libobjcX.a(Cell.o) : Cell.m Cell.h graphics.h Application.h Responder.h 
../libobjcX.a(ClipView.o) : ClipView.m ClipView.h View.h Responder.h graphics.h Motif.h NXCursor.h \
  ScrollView.h stdmacros.h 
../libobjcX.a(Control.o) : Control.m Control.h View.h Responder.h graphics.h Motif.h ActionCell.h \
  Cell.h 
../libobjcX.a(CustomObject.o) : CustomObject.m CustomObject.h 
../libobjcX.a(CustomView.o) : CustomView.m CustomView.h View.h Responder.h graphics.h Motif.h 
../libobjcX.a(FontManager.o) : FontManager.m FontManager.h 
../libobjcX.a(Form.o) : Form.m Form.h Matrix.h Control.h View.h Responder.h graphics.h Motif.h \
  Application.h FormCell.h ActionCell.h Cell.h TextField.h Window.h screens.h \
  stdmacros.h 
../libobjcX.a(FormCell.o) : FormCell.m FormCell.h ActionCell.h Cell.h graphics.h TextFieldCell.h \
  Text.h View.h Responder.h Motif.h 
../libobjcX.a(IBConnectors.o) : IBConnectors.m IBConnectors.h Control.h View.h Responder.h \
  graphics.h Motif.h CustomObject.h object-ivars.h 
../libobjcX.a(MList.o) : MList.m MList.h Control.h View.h Responder.h graphics.h Motif.h ../coll/List.h \
  ActionCell.h Cell.h Matrix.h 
../libobjcX.a(Matrix.o) : Matrix.m Matrix.h Control.h View.h Responder.h graphics.h Motif.h \
  ButtonCell.h ActionCell.h Cell.h sysparams.h stdmacros.h 
../libobjcX.a(Menu.o) : Menu.m Menu.h Panel.h Window.h Responder.h graphics.h screens.h MenuCell.h \
  ButtonCell.h ActionCell.h Cell.h sysparams.h Application.h Matrix.h Control.h \
  View.h Motif.h 
../libobjcX.a(MenuCell.o) : MenuCell.m MenuCell.h ButtonCell.h ActionCell.h Cell.h graphics.h \
  sysparams.h Menu.h Panel.h Window.h Responder.h screens.h 
../libobjcX.a(NXBitmapImageRep.o) : NXBitmapImageRep.m stdmacros.h NXBitmapImageRep.h graphics.h \
  NXImageRep.h ../appkit/tiff.h 
../libobjcX.a(NXBrowser.o) : NXBrowser.m NXBrowser.h Control.h View.h Responder.h graphics.h \
  Motif.h Box.h NXBrowserCell.h Cell.h Matrix.h Scroller.h ScrollView.h TextField.h \
  MList.h Text.h stdmacros.h 
../libobjcX.a(NXBrowserCell.o) : NXBrowserCell.m NXBrowserCell.h Cell.h graphics.h 
../libobjcX.a(NXBundle.o) : NXBundle.m NXBundle.h 
../libobjcX.a(NXCachedImageRep.o) : NXCachedImageRep.m NXCachedImageRep.h NXImageRep.h graphics.h \
  Window.h Responder.h screens.h 
../libobjcX.a(NXColorWell.o) : NXColorWell.m NXColorWell.h Control.h View.h Responder.h graphics.h \
  Motif.h 
../libobjcX.a(NXImage.o) : NXImage.m NXImage.h graphics.h color.h NXBitmapImageRep.h NXImageRep.h \
  NXCachedImageRep.h NXBundle.h stdmacros.h 
../libobjcX.a(NXImageRep.o) : NXImageRep.m NXImageRep.h graphics.h 
../libobjcX.a(OpenPanel.o) : OpenPanel.m OpenPanel.h SavePanel.h Panel.h Window.h Responder.h \
  graphics.h screens.h 
../libobjcX.a(Panel.o) : Panel.m Panel.h Window.h Responder.h graphics.h screens.h 
../libobjcX.a(PopUpList.o) : PopUpList.m PopUpList.h Menu.h Panel.h Window.h Responder.h graphics.h \
  screens.h MenuCell.h ButtonCell.h ActionCell.h Cell.h sysparams.h Matrix.h Control.h \
  View.h Motif.h 
../libobjcX.a(PrintInfo.o) : PrintInfo.m PrintInfo.h graphics.h 
../libobjcX.a(Responder.o) : Responder.m Responder.h publicWraps.h 
../libobjcX.a(SavePanel.o) : SavePanel.m SavePanel.h Panel.h Window.h Responder.h graphics.h \
  screens.h Application.h 
../libobjcX.a(ScrollView.o) : ScrollView.m ScrollView.h View.h Responder.h graphics.h Motif.h \
  Box.h ClipView.h Scroller.h Control.h 
../libobjcX.a(Scroller.o) : Scroller.m Scroller.h Control.h View.h Responder.h graphics.h Motif.h \
  stdmacros.h 
../libobjcX.a(Slider.o) : Slider.m Slider.h Control.h View.h Responder.h graphics.h Motif.h \
  SliderCell.h ActionCell.h Cell.h 
../libobjcX.a(SliderCell.o) : SliderCell.m SliderCell.h ActionCell.h Cell.h graphics.h 
../libobjcX.a(Text.o) : Text.m Text.h View.h Responder.h graphics.h Motif.h 
../libobjcX.a(TextField.o) : TextField.m TextField.h Control.h View.h Responder.h graphics.h \
  Motif.h TextFieldCell.h ActionCell.h Cell.h stdmacros.h 
../libobjcX.a(TextFieldCell.o) : TextFieldCell.m TextFieldCell.h ActionCell.h Cell.h graphics.h 
../libobjcX.a(View.o) : View.m View.h Responder.h graphics.h Motif.h Application.h CustomView.h 
../libobjcX.a(Window.o) : Window.m Window.h Responder.h graphics.h screens.h Application.h \
  Menu.h Panel.h CustomView.h View.h Motif.h Scroller.h Control.h 
../libobjcX.a(graphics.o) : graphics.c graphics.h stdmacros.h 
../libobjcX.a(objcX.o) : objcX.m objcX.h ActionCell.h Cell.h graphics.h Application.h Responder.h \
  Box.h View.h Motif.h ButtonCell.h sysparams.h Button.h Control.h ClipView.h \
  CustomObject.h CustomView.h FontManager.h FormCell.h Form.h Matrix.h IBConnectors.h \
  MenuCell.h Menu.h Panel.h Window.h screens.h NXBitmapImageRep.h NXImageRep.h \
  NXBrowser.h NXBrowserCell.h NXBundle.h NXColorWell.h NXImage.h color.h OpenPanel.h \
  SavePanel.h PopUpList.h PrintInfo.h ScrollView.h Scroller.h SliderCell.h Slider.h \
  TextFieldCell.h TextField.h 
../libobjcX.a(object-ivars.o) : object-ivars.c 
../libobjcX.a(publicWraps.o) : publicWraps.c publicWraps.h 
../libobjcX.a(tiff.o) : tiff.c ../appkit/tiff.h ../appkit/stdmacros.h 
../libobjcX.a(xmBox.o) : xmBox.m Box.h View.h Responder.h graphics.h Motif.h TextFieldCell.h \
  ActionCell.h Cell.h 
../libobjcX.a(xmButtonCell.o) : xmButtonCell.m ButtonCell.h ActionCell.h Cell.h graphics.h \
  sysparams.h Application.h Responder.h Control.h View.h Motif.h Window.h screens.h 
../libobjcX.a(xmCell.o) : xmCell.m Cell.h graphics.h Motif.h 
../libobjcX.a(xmForm.o) : xmForm.m Form.h Matrix.h Control.h View.h Responder.h graphics.h \
  Motif.h Application.h FormCell.h ActionCell.h Cell.h Window.h screens.h 
../libobjcX.a(xmFormCell.o) : xmFormCell.m FormCell.h ActionCell.h Cell.h graphics.h Motif.h \
  TextFieldCell.h 
../libobjcX.a(xmMenu.o) : xmMenu.m Menu.h Panel.h Window.h Responder.h graphics.h screens.h \
  Motif.h MenuCell.h ButtonCell.h ActionCell.h Cell.h sysparams.h Matrix.h Control.h \
  View.h 
../libobjcX.a(xmMenuCell.o) : xmMenuCell.m MenuCell.h ButtonCell.h ActionCell.h Cell.h graphics.h \
  sysparams.h Motif.h Menu.h Panel.h Window.h Responder.h screens.h 
../libobjcX.a(xmPopUpList.o) : xmPopUpList.m PopUpList.h Menu.h Panel.h Window.h Responder.h \
  graphics.h screens.h MenuCell.h ButtonCell.h ActionCell.h Cell.h sysparams.h \
  Matrix.h Control.h View.h Motif.h 
../libobjcX.a(xmResponder.o) : xmResponder.m Responder.h Motif.h 
../libobjcX.a(xmSavePanel.o) : xmSavePanel.m SavePanel.h Panel.h Window.h Responder.h graphics.h \
  screens.h Motif.h Application.h 
../libobjcX.a(xmScroller.o) : xmScroller.m Scroller.h Control.h View.h Responder.h graphics.h \
  Motif.h stdmacros.h 
../libobjcX.a(xmSliderCell.o) : xmSliderCell.m SliderCell.h ActionCell.h Cell.h graphics.h \
  Motif.h 
../libobjcX.a(xmTextFieldCell.o) : xmTextFieldCell.m TextFieldCell.h ActionCell.h Cell.h graphics.h \
  Motif.h Text.h View.h Responder.h 
../libobjcX.a(xmView.o) : xmView.m View.h Responder.h graphics.h Motif.h Application.h 
../libobjcX.a(xmWindow.o) : xmWindow.m Window.h Responder.h graphics.h screens.h Motif.h Application.h \
  Menu.h Panel.h Scroller.h Control.h View.h 
../libobjcX.a(xtApplication.o) : xtApplication.m Motif.h Application.h Responder.h graphics.h \
  Window.h screens.h stdmacros.h 
../libobjcX.a(xtNXBitmapImageRep.o) : xtNXBitmapImageRep.m NXBitmapImageRep.h graphics.h NXImageRep.h \
  Motif.h Application.h Responder.h 
../libobjcX.a(xtNXCachedImageRep.o) : xtNXCachedImageRep.m NXCachedImageRep.h NXImageRep.h \
  graphics.h Motif.h Application.h Responder.h Window.h screens.h 
../libobjcX.a(xtNXImage.o) : xtNXImage.m NXImage.h graphics.h color.h Motif.h Application.h \
  Responder.h 
../libobjcX.a(xtNXImageRep.o) : xtNXImageRep.m NXImageRep.h graphics.h Application.h Responder.h \
  Motif.h 
