#----------------------------------------------------------------------------
#
# Base classes makefile.
#
# $Ident: This file is part of the 'Gt-library' 1.0.0 $
# $Copyright: (C) 1997 by Gran Gustafsson $
#
#----------------------------------------------------------------------------


#----------------------------------------------------------------------------
# Include configuration
#----------------------------------------------------------------------------
include ../makefile.cfg


#----------------------------------------------------------------------------
# Sources & Objects
#----------------------------------------------------------------------------

SRC = gtbase.cc gtdisplay.cc gtcolormap.cc gtdrawable.cc\
	gtpixmap.cc gtwindow.cc gtfont.cc gtgc.cc gtcursor.cc gtimage.cc\
	gtcblist.cc gterror.cc gttags.cc gtdlink.cc gtslink.cc

OBJ = gtbase.o gtdisplay.o gtcolormap.o gtdrawable.o\
	gtpixmap.o gtwindow.o gtfont.o gtgc.o gtcursor.o gtimage.o\
	gtcblist.o gterror.o gttags.o gtdlink.o gtslink.o

SHOBJ = gtbase-sh.o gtdisplay-sh.o gtcolormap-sh.o gtdrawable-sh.o\
	gtpixmap-sh.o gtwindow-sh.o gtfont-sh.o gtgc-sh.o gtcursor-sh.o\
	gtimage-sh.o gtcblist-sh.o gterror-sh.o gttags-sh.o gtdlink-sh.o\
	gtslink-sh.o


#----------------------------------------------------------------------------
# Targets
#----------------------------------------------------------------------------

all : ../$(GTLIB)

allsh : ../$(GTSLIB)

base : ../$(GTBLIB)

../$(GTLIB) : $(OBJ) $(REPLOBJ)
	$(AR) ../$(GTLIB) $?
	$(RAN) ../$(GTLIB)

../$(GTBLIB) : $(OBJ) $(REPLOBJ)
	$(AR) ../$(GTBLIB) $?
	$(RAN) ../$(GTLIB)

../$(GTSLIB) : $(SHOBJ) $(SHREPLOBJ)

%.o : %.cc
	$(COBJ) $<

%-sh.o : %.cc
	$(CSHO) $@ $<

include .depend

.depend : $(SRC) $(REPLSRC)
	$(MKDEP) $(SRC) $(REPLSRC) >.depend


#----------------------------------------------------------------------------
# Specials
#----------------------------------------------------------------------------

clean :
	$(RM) $(OBJ) $(REPLOBJ)
	$(RM) $(SHOBJ) $(SHREPLOBJ)
