Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 047fe99

Browse files
committed
Donn Cave <[email protected]>:
Revise BeOS support. This closes SourceForge patch #101776.
1 parent 9e2e1e5 commit 047fe99

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

Makefile.in

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -168,14 +168,17 @@ $(LIBRARY): $(SUBDIRS)
168168
for i in $(SUBDIRS); do \
169169
(cd $$i; $(MAKE) VERSION="$(VERSION)" add2lib); done
170170

171-
# This rule is only here for DG/UX!!!
171+
# This rule is only here for DG/UX and BeOS!!!
172172
libpython$(VERSION).so: $(LIBRARY)
173173
case `uname -s | tr -d '/ ' | tr '[A-Z]' '[a-z]'` in \
174174
*dgux*) \
175175
test -d dgux || mkdir dgux; \
176176
(cd dgux;ar x ../$^;ld -G -o ../$@ * ); \
177177
/bin/rm -rf ./dgux \
178178
;; \
179+
beos) \
180+
$(srcdir)/BeOS/ar-fake so $(LIBRARY) $@ \
181+
;; \
179182
esac
180183

181184
# This rule is here for OPENSTEP/Rhapsody/MacOSX
@@ -367,7 +370,7 @@ libainstall: all
367370
else true; \
368371
fi; \
369372
done
370-
@if [ "$(MACHDEP)" != "beos" ] ; then \
373+
@if test -d $(LIBRARY); then :; else \
371374
$(INSTALL_DATA) $(LIBRARY) $(LIBPL)/$(LIBRARY) ; \
372375
$(RANLIB) $(LIBPL)/$(LIBRARY) ; \
373376
fi
@@ -396,23 +399,19 @@ libainstall: all
396399
echo; echo "See Misc/AIX-NOTES for details."; \
397400
else true; \
398401
fi
399-
@if [ "$(MACHDEP)" = "beos" ] ; then \
402+
@case "$(MACHDEP)" in beos*) \
400403
echo; echo "Installing support files for building shared extension modules on BeOS:"; \
401404
$(INSTALL_DATA) BeOS/README $(LIBPL)/README; \
402405
echo; echo "$(LIBPL)/README"; \
403406
$(INSTALL_DATA) BeOS/README.readline-2.2 $(LIBPL)/README.readline-2.2; \
404407
echo "$(LIBPL)/README.readline-2.2"; \
405-
$(INSTALL_DATA) BeOS/dl_export.h $(LIBPL)/dl_export.h; \
406-
echo "$(LIBPL)/dl_export.h"; \
407408
$(INSTALL_PROGRAM) BeOS/ar-fake $(LIBPL)/ar-fake; \
408409
echo "$(LIBPL)/ar-fake"; \
409-
$(INSTALL_PROGRAM) BeOS/linkcc $(LIBPL)/linkcc; \
410-
echo "$(LIBPL)/linkcc"; \
411410
$(INSTALL_PROGRAM) BeOS/linkmodule $(LIBPL)/linkmodule; \
412411
echo "$(LIBPL)/linkmodule"; \
413412
echo; echo "See BeOS/README for details."; \
414-
else true; \
415-
fi
413+
;; \
414+
esac
416415

417416
# Install the dynamically loadable modules
418417
# This goes into $(exec_prefix)

0 commit comments

Comments
 (0)