* INSTALL
+ Added Linux build on NT host example.
* utils/hbmk2/hbmk2.prg
+ Added support for most watcom cross-compile situations.
(os2/linux/dos on win, os2/linux/win on dos, dos/win/linux on os2,
dos/win/os2 on linux - I didn't test them all obviously)
! Some fixes regarding Linux targets on non-Linux hosts cross
build situations. This is brand new situation.
! Synced watcom/os2 flags with build ones to avoid hbmk2 build errors
on os2.
! Fixed linux/watcom object extension, which appears to be .obj
when using non-Linux hosts.
* make_gnu.bat
* Linux cross-build support.
! Fixed to find make_gnu.sh when doing partial builds using
bash on Windows.
* config/win/global.cf
* config/win/install.cf
* config/linux/dir.cf
* config/linux/global.cf
* config/linux/install.cf
* config/os2/global.cf
* config/os2/install.cf
* config/wce/global.cf
* config/wce/install.cf
+ install bash section synced across linux/windosos2 platforms.
+ empty target handling synced across linux/windosos2 platforms.
+ Added support to linux build files for cross builds on
Windows and OS/2 hosts.
; TODO: Whole install/global/dir.cf logic is just crying to be moved
to central location and be branched by host platform/shell
rather than target platform.
; Please check me on the linux changes, could be that I messed it up.
* source/rtl/Makefile
+ Enabled to try building all GTs on every platform.
Local autodetection should take care of the decision to finally
build it or not.
* source/rtl/gtxwc/Makefile
* source/rtl/gtcrs/Makefile
* source/rtl/gttrm/Makefile
* source/rtl/gtsln/Makefile
+ Added self-detection for external headers just like it's done
in contribs. This is required to support Linux cross-builds on
Windows. (djgpp + curses ends with build errors)
+ Added GPM autodetection.
+ Enabled gttrm for cygwin. (only in local make file)
; TOFIX: Remove such detection logic from make_gnu.sh (it's
now redundant and doesn't work for djgpp/cygwin)
* source/rtl/gtwin/gtwin.c
* source/rtl/hbgtcore.c
* contrib/xhb/txml.prg
* Minor formatting.
59 lines
1.1 KiB
CFEngine3
59 lines
1.1 KiB
CFEngine3
#
|
|
# $Id$
|
|
#
|
|
|
|
ifeq ($(INSTALL_OBJS),) # Empty install list
|
|
|
|
INSTALL_RULE = @echo Done
|
|
|
|
else
|
|
|
|
ifeq ($(SHLVL),) # non-bash
|
|
|
|
ifeq ($(OS2_SHELL),) # non-OS/2
|
|
|
|
INSTALL_LIST = $(subst /,\,$(INSTALL_OBJS))
|
|
|
|
INSTALL_RULE = \
|
|
-$(COMSPEC) /c for %%f in ($(INSTALL_LIST)) do copy "%%f" "$(subst /,\,$(INSTALL_DIR))"
|
|
|
|
else # OS/2
|
|
|
|
# We have to use script to overcome the max command size limit
|
|
# NOTE: The empty line directly before 'endef' HAVE TO exist!
|
|
# It causes that every commands will be separated by LF
|
|
define inst_file
|
|
$(COMSPEC) /C $(CP) $(file) $(subst /,\,$(INSTALL_DIR))
|
|
|
|
endef
|
|
|
|
INSTALL_LIST = $(subst /,\,$(INSTALL_OBJS))
|
|
INSTALL_RULE = $(foreach file, $(INSTALL_LIST), $(inst_file))
|
|
|
|
endif
|
|
|
|
else # bash
|
|
|
|
INSTALL_RULE =\
|
|
@if [ -z $(INSTALL_DIR) ] || [ ! -d $(INSTALL_DIR) ]; \
|
|
then \
|
|
echo "! Can't install, path not found: '$(INSTALL_DIR)'" 1>&2; \
|
|
false; \
|
|
else \
|
|
for i in $(INSTALL_OBJS); \
|
|
do \
|
|
if [ -r $$i ]; \
|
|
then \
|
|
echo "! Installing $$i on $(INSTALL_DIR)"; \
|
|
$(CP) $$i $(INSTALL_DIR); \
|
|
true; \
|
|
else \
|
|
echo "! Can't install $$i, not found" 1>&2; \
|
|
fi \
|
|
done \
|
|
fi
|
|
|
|
endif
|
|
|
|
endif # Empty install list
|