# # Copyright (c) 1994, 1995, 1996 Gunther Schadow. All rights reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program 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 General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. TOPDIR = ../.. ROOTDIR = .. LIBRARY = hl7 SUBDIRS = basics codes composites segments messages supp JUNK += gensource-stamp include $(TOPDIR)/GNUmakefile.inc install: $(INSTALL) libhl7.a $(PGLIB) # # ANALYZE # FUNCTIONS=___ __$$_ _set _get _unset _input _output _OK ___as JUNK += size size.* analyze: size.totals @echo Analysis of code size @size libhl7.a |cut -f1-4 |./sumtab @cat size.totals size: # libhl7.a @gnm -t d --size-sort libhl7.a |egrep "^[0-9]" |sort -nr -o $@ $(addprefix size., $(FUNCTIONS)): size @fgrep '$(patsubst .%,%,$(suffix $@))' size > '$@' size.rest: size @cat size $(foreach i,$(FUNCTIONS),|fgrep -v '$i') > $@ size.totals: $(addprefix size., $(FUNCTIONS)) size.rest size @( $(foreach i,$^, echo $$(cut -d' ' -f1 '$i' |sed s/^0*// \ |./add) '$i' ;) ) \ |sort -nr -o $@ ### Do not change this line, make depend uses it! ###