2 # configure for executable
5 #------------- Stuff added to enable --prefix --------------
6 if test "x$1" != "x"; then
7 # echo Found input parameter -- $1
8 # Now see if the parameter is --prefix=
9 if test "x${1#--prefix=}" != "x$1"; then
10 # echo "Found --prefix in input args. Setting prefix directory."
13 # echo "Found unrecognized parameter in input args."
14 # Just use the default prefix dir.
19 # echo "No input parameter found."
20 # Just use the default prefix dir
24 sed -e "s#/usr/local#$prefix#" ..
/Makefile.template
> Makefile
26 #----------------------------------------------------------------
27 echo "CCFLAGS = \\" >Make.ccflags
28 echo "-DUNIX -O2 -DNDEBUG -I. -I../include -I../../include -W" >>Make.ccflags
30 echo "LIBS = \\" >Make.libs
31 echo "-lgnucap \\" >>Make.libs
33 echo "PREFIX = " $prefix >>Make.libs
36 cat <<CAT_EOF >Make.sys
37 #------------------------------------------------------------------------
46 .cc.o:; \$(CCC) \$(CCFLAGS) -c \$<
47 #------------------------------------------------------------------------
50 \$(CCC) \$(CCFLAGS) \$(OBJS) -o \$@ \$(LIBS) \$(LDFLAGS)
51 #------------------------------------------------------------------------
54 echo \
# created by modelgen/configure. do not edit >Make2
55 echo \
#------------------------------------------------------------------------ >>Make2
56 cat Make.ccflags Make.libs Make.sys
>>Make2
57 rm Make.ccflags Make.libs Make.sys