-
Notifications
You must be signed in to change notification settings - Fork 0
/
fix4aix
executable file
·31 lines (28 loc) · 1.03 KB
/
fix4aix
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
27
28
29
30
#! /bin/sh
for i in cxs a cxb cxc cxsys dap esf MSTypes MSIPC MSGUI IPC AplusGUI
do
cd src/$i
sed -e 's/^\.\(.\)\.lo:/.\1.ng:/' \
-e 's/\.lo/.o/g' \
-e 's/$(LIBTOOL) --mode=link //' \
-e 's/^LDFLAGS =/& -shared/' \
-e "s/^ \$(CXXLINK) -rpath .*/ ar crv lib${i}.a \$(lib${i}_la_OBJECTS)/" \
-e "s/^ \$(LINK) -rpath .*/ ar crv lib${i}.a \$(lib${i}_la_OBJECTS)/" \
-e 's/lib\(.*\)\.la/lib\1.a/' Makefile > Makefile.aix
mv Makefile.aix Makefile
cd ../..
done
sed -e 's/libcxs\.la/libcxs.a/g' \
-e 's/liba\.la/liba.a/g' \
-e 's/libcxb\.la/libcxb.a/g' \
-e 's/libcxc\.la/libcxc.a/g' \
-e 's/libcxsys\.la/libcxsys.a/g' \
-e 's/libdap\.la/libdap.a/g' \
-e 's/libesf\.la/libesf.a/g' \
-e 's/libAplusGUI\.la/libAplusGUI.a/g' \
-e 's/libIPC\.la/libIPC.a/g' \
-e 's/libMSGUI\.la/libMSGUI.a/g' \
-e 's/libMSIPC\.la/libMSIPC.a/g' \
-e 's/libMSTypes\.la/libMSTypes.a/g' \
src/main/Makefile > src/main/Makefile.aix
mv src/main/Makefile.aix src/main/Makefile