#  Makefile from ObjectProDSP 0.1
#  Copyright (C) 1994, Mountain Math Software. All rights reserved.
#  
#  This file is part of ObjectProDSP, a tool for Digital Signal
#  Processing design, development and implementation. It is free
#  software provided you use and distribute it under the terms of
#  version 2 of the GNU General Public License as published
#  by the Free Software Foundation. You may NOT distribute it or
#  works derived from it or code that it generates under ANY
#  OTHER terms.  In particular NONE of the ObjectProDSP system is
#  licensed for use under the GNU General Public LIBRARY License.
#  Mountain Math Software plans to offer a commercial version of
#  ObjectProDSP for a fee. That version will allow redistribution
#  of generated code under standard commercial terms.
#  
#  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 version 2 of the GNU General
#  Public License along with this program. See file COPYING. If not
#  or if you wish information on commercial versions and licensing
#  write Mountain Math Software, P. O. Box 2124, Saratoga, CA 95070,
#  USA, or send us e-mail at: support@mtnmath.com.
#  
#  You may also obtain the GNU General Public License by writing the
#  Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
#  USA.  However if you received a copy of this program without the
#  file COPYING or without a copyright notice attached to all text
#  files, libraries and executables please inform Mountain Math Software.
#  
#  ObjectProDSP is a trademark of Mountain Math Software.
#  
############### From `../../../../scripts/Makefile_head' ###############
#  Makefile_head from ObjectProDSP 0.1
#  Copyright (C) 1994, Mountain Math Software, All rights reserved.
#  Licensed for free use and distribution under version 2 of the Gnu General
#  Public License. Please see file COPYING for details and restrictions.
#  
#  ObjectProDSP is a trademark of Mountain Math Software.
#  
ifndef OPD_ROOT
DUMMY::
	@echo "OPD_ROOT is not set. It must be set to the root directory in which ObjectProDSP"
	@echo "is installed. You can set it by going to that directory and entering:"
	@echo ". set_root"
	@echo "DO NOT DO THIS IN ANOTHER DIRECTORY. You must \`cd' to the installation root."
endif

############### End  `../../../../scripts/Makefile_head' ###############
############### From `../../../../scripts/Makefile_head.linux' ###############
#  Makefile_head.linux from ObjectProDSP 0.1
#  Copyright (C) 1994, Mountain Math Software, All rights reserved.
#  Licensed for free use and distribution under version 2 of the Gnu General
#  Public License. Please see file COPYING for details and restrictions.
#  
#  ObjectProDSP is a trademark of Mountain Math Software.
#  
CC = g++
C_LINK = ${CC}
############### End  `../../../../scripts/Makefile_head.linux' ###############
HD_2 = ../../../../src/include/ObjProGen
HD_7 = ../../../../src/include/ObjProDSP
HD_1 = ../../../../src/include
HD_0 = ../../../../src/genlib/common
HD_3 = ../../../../src/include/ObjProNoGui/ObjProComGui
HD_10 = ../../../../src/include/ObjProNoGui
HD_4 = ../../../../src/include/ObjProNoGui/ObjProGui
HD_5 = ../../../../src/include/ObjProNoDSP/ObjProGui
HD_6 = ../../../../src/include/ObjProArithDum/ObjProArith
HD_8 = ../../../../src/include/ObjProArithGen
HD_9 = ../../../../src/include/ObjProArithDum
INC_DIRS = -I${HD_0} -I${HD_1} -I${HD_2} -I${HD_3} -I${HD_7} -I${HD_10}
LOCAL_DIR = ..
MAIN_DIR = ..
USR_H_DIR  = ${OPD_ROOT}/src/include/ObjProDSPint/ObjProUsr

SUB_DIR = obj

OBJS = bits.o copyright.o dlist.o dosname.o elinlist.o environ.o files.o flist.o \
    gcd.o genrand.o lexnum.o linlist.o mkstr.o outfilnm.o slist.o stack.o strgck.o texrep.o \
    texspec.o 
C_DIR_0 = ../../../../src/genlib/common/obj
C_DIR_B_0 = ../../../../src/genlib/common
../../../../lib/Libopdcom_Link :  UsrMakes LocalMakes ${OBJS} \
	../../../../lib/Libopdcom

UsrMakes : 
COLL_OBJS = ${OBJS} \

../../../../lib/Libopdcom :  ${COLL_OBJS} 
	touch LibCollcommon
	rm LibCollcommon
	ar r LibCollcommon  ${COLL_OBJS}
	mv LibCollcommon ../../../../lib/Libopdcom
	${LAST_ACTION}

Target LocalTarget : LibCollcommon

LocalMakes :
bits.o : ${LOCAL_DIR}/bits.C ${HD_2}/bits.h ${HD_7}/portable.h
	${CC} ${CFLAGS} ${INC_DIRS} ${LOCAL_DIR}/bits.C


copyright.o : ${LOCAL_DIR}/copyright.C ${LOCAL_DIR}/cpy_strings.h \
   ${LOCAL_DIR}/user_cpy_strings.h ${HD_2}/mkstr.h ${HD_2}/errcode.h \
   ${HD_7}/version.h ${HD_2}/copyright.h ${HD_2}/slist.h
	${CC} ${CFLAGS} ${INC_DIRS} ${LOCAL_DIR}/copyright.C


dlist.o : ${LOCAL_DIR}/dlist.C ${HD_2}/slist.h ${HD_2}/errcode.h \
   ${HD_2}/dlist.h ${HD_7}/portable.h ${HD_2}/errcode.h
	${CC} ${CFLAGS} ${INC_DIRS} ${LOCAL_DIR}/dlist.C


dosname.o : ${LOCAL_DIR}/dosname.C ${HD_2}/dosname.h ${HD_2}/mkstr.h
	${CC} ${CFLAGS} ${INC_DIRS} ${LOCAL_DIR}/dosname.C


elinlist.o : ${LOCAL_DIR}/elinlist.C ${HD_2}/linlist.h ${HD_2}/errcode.h \
   ${HD_2}/elinlist.h ${HD_3}/dbgcode.h ${HD_2}/debug.h
	${CC} ${CFLAGS} ${INC_DIRS} ${LOCAL_DIR}/elinlist.C


environ.o : ${LOCAL_DIR}/environ.C ${HD_2}/environ.h ${HD_2}/mkstr.h
	${CC} ${CFLAGS} ${INC_DIRS} ${LOCAL_DIR}/environ.C


files.o : ${LOCAL_DIR}/files.C ${HD_2}/files.h
	${CC} ${CFLAGS} ${INC_DIRS} ${LOCAL_DIR}/files.C


flist.o : ${LOCAL_DIR}/flist.C ${HD_2}/linlist.h ${HD_2}/mkstr.h
	${CC} ${CFLAGS} ${INC_DIRS} ${LOCAL_DIR}/flist.C


gcd.o : ${LOCAL_DIR}/gcd.C ${HD_2}/gcd.h ${HD_2}/plimits.h ${HD_7}/portable.h
	${CC} ${CFLAGS} ${INC_DIRS} ${LOCAL_DIR}/gcd.C


genrand.o : ${LOCAL_DIR}/genrand.C ${HD_3}/cgidbg.h ${HD_2}/sysrand.h \
   ${HD_2}/genrand.h ${HD_2}/errcode.h ${HD_3}/dbgcode.h ${HD_2}/debug.h \
   ${HD_7}/portable.h ${HD_7}/portable.h
	${CC} ${CFLAGS} ${INC_DIRS} ${LOCAL_DIR}/genrand.C


lexnum.o : ${LOCAL_DIR}/lexnum.C ${HD_2}/lexnum.h ${HD_2}/errcode.h \
   ${HD_3}/dbgcode.h ${HD_7}/portable.h ${HD_2}/debug.h
	${CC} ${CFLAGS} ${INC_DIRS} ${LOCAL_DIR}/lexnum.C


linlist.o : ${LOCAL_DIR}/linlist.C ${HD_2}/linlist.h
	${CC} ${CFLAGS} ${INC_DIRS} ${LOCAL_DIR}/linlist.C


mkstr.o : ${LOCAL_DIR}/mkstr.C ${HD_2}/mkstr.h
	${CC} ${CFLAGS} ${INC_DIRS} ${LOCAL_DIR}/mkstr.C


outfilnm.o : ${LOCAL_DIR}/outfilnm.C ${HD_2}/outfilnm.h
	${CC} ${CFLAGS} ${INC_DIRS} ${LOCAL_DIR}/outfilnm.C


slist.o : ${LOCAL_DIR}/slist.C ${HD_2}/errcode.h ${HD_7}/portable.h \
   ${HD_2}/slist.h ${HD_2}/errcode.h
	${CC} ${CFLAGS} ${INC_DIRS} ${LOCAL_DIR}/slist.C


stack.o : ${LOCAL_DIR}/stack.C ${HD_2}/errcode.h ${HD_3}/dbgcode.h \
   ${HD_2}/debug.h ${HD_2}/stack.h
	${CC} ${CFLAGS} ${INC_DIRS} ${LOCAL_DIR}/stack.C


strgck.o : ${LOCAL_DIR}/strgck.C ${HD_2}/strgck.h ${HD_2}/errcode.h \
   ${HD_7}/portable.h ${HD_2}/slist.h
	${CC} ${CFLAGS} ${INC_DIRS} ${LOCAL_DIR}/strgck.C


texrep.o : ${LOCAL_DIR}/texrep.C ${HD_2}/mkstr.h
	${CC} ${CFLAGS} ${INC_DIRS} ${LOCAL_DIR}/texrep.C


texspec.o : ${LOCAL_DIR}/texspec.C ${HD_2}/texspec.h ${HD_2}/texrep.h \
   ${HD_2}/texutil.h ${HD_2}/textrans.h ${HD_2}/mkstr.h
	${CC} ${CFLAGS} ${INC_DIRS} ${LOCAL_DIR}/texspec.C



############### From `../../../../src/genlib/common/obj/Makefile_inc' ###############
#  Makefile_inc from ObjectProDSP 0.1
#  Copyright (C) 1994, Mountain Math Software, All rights reserved.
#  Licensed for free use and distribution under version 2 of the Gnu General
#  Public License. Please see file COPYING for details and restrictions.
#  
#  ObjectProDSP is a trademark of Mountain Math Software.
#  
COPYRIGHT_DEP=${OPD_ROOT}/scripts/make_copyright.sh \
	${OPD_ROOT}/src/genlib/common/obj/Makefile_inc

# Directory ${OPD_ROOT}/MOUNTAIN_MATH_NOTICES is for Mountain Math
# Software internal use only. It is not part of the user distribution.
MM_COPYRIGHT:=$(wildcard ${OPD_ROOT}/MOUNTAIN_MATH_NOTICES/*copyright_text)
ifdef MM_COPYRIGHT
DST=${LOCAL_DIR}/cpy_strings.h 
${DST} : ${MM_COPYRIGHT} ${COPYRIGHT_DEP}
	echo "/* $@ */" > $@
	sh ${OPD_ROOT}/scripts/make_copyright.sh ${MM_COPYRIGHT} >> $@
endif

COPYRIGHT=${OPD_ROOT}/scripts/user_copyright_text 
DST_USER=${LOCAL_DIR}/user_cpy_strings.h 

${DST_USER} : ${COPYRIGHT} ${COPYRIGHT_DEP}
	echo "/* $@ */" > $@
	sh ${OPD_ROOT}/scripts/make_copyright.sh ${COPYRIGHT} >> $@


############### End  `../../../../src/genlib/common/obj/Makefile_inc' ###############
############### From `../../../../scripts/Makefile_tail.linux' ###############
#  Makefile_tail.linux from ObjectProDSP 0.1
#  Copyright (C) 1994, Mountain Math Software, All rights reserved.
#  Licensed for free use and distribution under version 2 of the Gnu General
#  Public License. Please see file COPYING for details and restrictions.
#  
#  ObjectProDSP is a trademark of Mountain Math Software.
#  
CLEAN : 
	rm ${ALL_OBJS}

CFLAGS = -c -O ${EXTRA_CFLAGS} -DPROTOTYPE 
LKFLAGS = ${EXTRA_LK_FLAGS} -lm 
C_LINK = g++

############### End  `../../../../scripts/Makefile_tail.linux' ###############
OPD_MAKEFILE_CREATOR:=$(wildcard ${OPD_ROOT}/bin/makemake)
ifdef OPD_MAKEFILE_CREATOR
Makefile: domakemake ../../../../scripts/set_opt ../../../../src/genlib/common/obj/Makefile_inc
	domakemake
endif

include ../../../../scripts/Makefile_main_include
