#       makefile for sizeof tool
#
#
#    ========== licence begin LGPL
#    Copyright (C) 2002 SAP AG
#
#    This library is free software; you can redistribute it and/or
#    modify it under the terms of the GNU Lesser General Public
#    License as published by the Free Software Foundation; either
#    version 2.1 of the License, or (at your option) any later version.
#
#    This library is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
#    Lesser General Public License for more details.
#
#    You should have received a copy of the GNU Lesser General Public
#    License along with this library; if not, write to the Free Software
#    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#    ========== licence end
#


include	../Makedefs

.SUFFIXES: .p .c .o .mf
.c.o:
.p.c:
.p.o:


all :		sizeof

install :	$(TOOL)/pgm/sizeof

lintall :

clean :
	-rm -f *.o y.*
	-rm -f prot `ls *.ln 2>/dev/null | grep -v llib-l`
	-rm -f sizeof

itt87.p :	itt87.mf
	mfp -f itt87.mf
	$(MV) itt87.mf.p itt87.p

itt87.c :	itt87.p
	ptoc -qn -e -c itt87.p

itt87.o :	itt87.c
	$(CC) $(CFLAGS) -g -I$(TOOL)/incl -c itt87.c

sizeof :		itt87.o
	$(LD) $(LFLAGS) -o sizeof itt87.o $(TOOL)/lib/libsqlptc.a
$(TOOL)/pgm/sizeof :	itt87.o
	$(LD) $(LFLAGS) -o sizeof itt87.o $(TOOL)/lib/libsqlptc.a
	$(MV) sizeof $(TOOL)/pgm/.

