2007-08-26 18:15 UTC+0100 Marek Paliwoda (mpaliwoda at interia pl)

* harbour/makefile.gc
     * Added a DIRTY hack for Windows systems to allow
       building either CONSOLE or GUI programs with gcc.
       A new library libmainstd.a is created. This library
       should be added to a link libraries if programs are
       CONSOLE based.
This commit is contained in:
Marek Paliwoda
2007-08-26 16:20:52 +00:00
parent a455bf0d4c
commit cb55059a0f
2 changed files with 32 additions and 0 deletions

View File

@@ -8,6 +8,14 @@
2002-12-01 13:30 UTC+0100 Foo Bar <foo.bar@foobar.org>
*/
2007-08-26 18:15 UTC+0100 Marek Paliwoda (mpaliwoda at interia pl)
* harbour/makefile.gc
* Added a DIRTY hack for Windows systems to allow
building either CONSOLE or GUI programs with gcc.
A new library libmainstd.a is created. This library
should be added to a link libraries if programs are
CONSOLE based.
2007-08-25 12:20 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbapi.h
* harbour/source/vm/arrays.c

View File

@@ -96,6 +96,25 @@ include common.cf
#**********************************************************
# Hack for WINDOWS systems. We're removing mainstd file
# from VM lib and we're putting it into a new library
# libmainstd.a to allow building either CONSOLE or GUI
# programs, depending on which library we're linking
# against. If we're linking against libmainstd we're
# building CONSOLE programs. Otherwise we're building
# GUI programs without console. Please note IT IS A
# DIRTY HACK and any better solution is HIGHLY WELCOME
ifeq ($(HB_ARCHITECTURE),w32)
MAIN_LIB = $(LIB_DIR)/$(LIBPREF)mainstd$(LIBEXT)
MAIN_LIB_OBJS = $(OBJ_DIR)/mainstd$(OBJEXT)
VM_STATIC_LIB_OBJS := $(VM_STATIC_LIB_OBJS:$(OBJ_DIR)/mainstd$(OBJEXT)=)
STANDARD_STATIC_HBLIBS := $(STANDARD_STATIC_HBLIBS) $(MAIN_LIB)
HB_BUILD_TARGETS := $(MAIN_LIB) $(HB_BUILD_TARGETS)
endif
#**********************************************************
#.SUFFIXES: $(EXEEXT) $(LIBEXT) $(OBJEXT) .prg .c .l .y
#**********************************************************
@@ -255,6 +274,11 @@ $(COMPILER_LIB) : $(COMPILER_LIB_OBJS)
$(VM_LIB) : $(VM_LIB_OBJS)
$(MKLIB) $(ARFLAGS) $@ $^
#**********************************************************
ifeq ($(HB_ARCHITECTURE),w32)
$(MAIN_LIB) : $(MAIN_LIB_OBJS)
$(MKLIB) $(ARFLAGS) $@ $^
endif
#**********************************************************
$(RTL_LIB) : $(RTL_LIB_OBJS)
$(MKLIB) $(ARFLAGS) $@ $^
#**********************************************************