summaryrefslogtreecommitdiff
path: root/src/mods/configure
blob: 839380b3c4be3e6726b05748bbcb9773246db53e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#! /bin/sh

if ! test -f ../../g++.version
then
 echo You need to run ./configure of the top level source dir first
 exit 1
fi 

echo Creating module Makefiles...
for dir in commands html
do
 if test -d $dir
 then
  cd $dir &&
  srcs="SRCS=`ls *.cpp`" &&
  echo $srcs > Makefile
  compiler=`tail -n 1 ../../../g++.version`
  sed s/COMPILER/$compiler/ Makefile.in >> Makefile &&
  for i in *.cpp
  do
   echo "../../../mods/$dir/`echo $i | sed s/.cpp/.so/`: $i" >> Makefile 
  done
  cd .. 
 fi
done