# # 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 = ../.. NEEDMSGS := $(shell cat ../supp/ANYmsg.conf | tr '^' '_') NEEDMSGH := $(NEEDMSGS:%=%msg.h) NEEDMSGCC := $(NEEDMSGS:%=%msg.cc) NEEDMSGICC:= $(NEEDMSGS:%=%msg.icc) ifndef DONT_MAKE_ALL_MESSAGES CC_GENSRCS := $(shell ls -1 *msg.cc 2>/dev/null) \ $(shell ls -1 *var.cc 2>/dev/null) \ $(shell ls -1 *cgrp*.cc 2>/dev/null) repstruc.cc H_GENSRCS := $(shell ls -1 *msg.h 2>/dev/null) \ $(shell ls -1 *var.h 2>/dev/null) \ $(shell ls -1 *cgrp*.h 2>/dev/null) \ ANYseg-config.h ICC_GENSRCS := $(shell ls -1 *msg.icc 2>/dev/null) \ $(shell ls -1 *var.icc 2>/dev/null) \ $(shell ls -1 *cgrp*.icc 2>/dev/null) else CC_GENSRCS := $(NEEDMSGCC) $(shell ls -1 *var.cc 2>/dev/null) \ $(shell ls -1 *cgrp*.cc 2>/dev/null) H_GENSRCS := $(NEEDMSGH) $(shell ls -1 *var.h 2>/dev/null) \ $(shell ls -1 *cgrp*.h 2>/dev/null) ANYseg-config.h ICC_GENSRCS := $(NEEDMSGICC) $(shell ls -1 *var.icc 2>/dev/null) \ $(shell ls -1 *cgrp*.icc 2>/dev/null) endif GENSRCS = $(CC_GENSRCS) $(H_GENSRCS) $(ICC_GENSRCS) \ repstruc.conf ANYseg.conf CC_SRCS = $(CC_GENSRCS) ANYseg.cc repANYseg.cc H_SRCS = $(H_GENSRCS) $(ICC_GENSRCS) ANYseg.h ANYseg.icc \ repANYseg.h repANYseg.icc all: lib include $(TOPDIR)/GNUmakefile.inc gensrcs: protogen -D . -T $(TOPDIR) -P hl7-v2.2 -t messages ### Do not change this line, make depend uses it! ###