1
0
Fork 0
flightgear/Simulator/genmake
curt bda27365e4 Merged in make system changes from Bob Kuehne <rpk@sgi.com>
This should simplify things tremendously.
1998-01-19 19:26:51 +00:00

22 lines
561 B
Tcsh
Executable file

#!/bin/csh
set GENMAKEBASE=${FG_ROOT_SRC}
set ARLIBDIRS="Aircraft Astro Cockpit Controls Flight Flight/Slew Joystick Scenery Time Weather"
set MUSTDOMANUALLY="Math Flight/LaRCsim XGL"
set AR_PROTOMAKE=${GENMAKEBASE}/armake.proto
echo $ARLIBDIRS
foreach dir (${ARLIBDIRS})
cd $dir
set cfiles=`ls *.c | sed -e's%^M% %'`
set cxxfiles=`ls *.cxx`
sed \
-e "s%__LIB_NAME_HERE__%lib`basename ${dir}`.a%g" \
-e "s%__CXX_SRC_HERE__%${cxxfiles}%g" \
-e "s%__C_SRC_HERE__%${cfiles}%g" \
${AR_PROTOMAKE} > Makefile
cd ${GENMAKEBASE}
end