* harbour/makefile.bc
* harbour/makefile.vc
* harbour/config/rules.cf
* harbour/contrib/btree/makefile.bc
* harbour/contrib/htmllib/Makefile.bc
* harbour/contrib/htmllib/makefile.vc
* harbour/contrib/libct/makefile.bc
* harbour/contrib/libct/makefile.vc
* harbour/contrib/libgt/makefile.bc
* harbour/contrib/libgt/makefile.vc
* harbour/contrib/libmisc/makefile.bc
* harbour/contrib/libmisc/makefile.vc
* harbour/contrib/libnf/makefile.vc
* harbour/contrib/libnf/nanfor.bc
* harbour/contrib/samples/makefile.bc
* harbour/contrib/samples/makefile.vc
+ harbour/contrib/samples/make_b32.bat
+ harbour/contrib/samples/make_vc.bat
- harbour/contrib/samples/makevc.bat
+ -w default Harbour build switch changed to -w2,
to further maintain code quality.
; Notice that CONTRIB might need some fixing here.
+ Added proper BC/VC make batch files for "samples".
* harbour/include/hbclass.ch
* harbour/source/debug/dbgmenu.prg
* harbour/source/debug/debugger.prg
* harbour/source/rtl/teditor.prg
* harbour/utils/hbdoc/genchm.prg
* harbour/utils/hbdoc/genhtm.prg
* harbour/utils/hbdoc/genng.prg
* harbour/utils/hbdoc/genos2.prg
* harbour/utils/hbdoc/genpdf1.prg
* harbour/utils/hbdoc/genrtf.prg
* harbour/utils/hbdoc/os2.prg
* harbour/utils/hbmake/hbmake.prg
* harbour/utils/hbmake/radios.prg
* harbour/utils/hbpptest/pretest.prg
* harbour/utils/hbtest/rt_misc.prg
+ Added HB_SYMBOL_UNUSED() inside codeblocks.
! Removed a few uneeded codeblock parameters.
+ Added HB_SYMBOL_UNUSED() to some class syntax generated
code to avoid unused "Self" var warnings.
* harbour/ChangeLog.017
! Typos.
204 lines
4.4 KiB
Makefile
204 lines
4.4 KiB
Makefile
#
|
|
# $Id$
|
|
#
|
|
|
|
#
|
|
# Makefile for Harbour Project for Borland C/C++ 3.x, 4.x, 5.x compilers
|
|
#
|
|
|
|
#
|
|
# NOTE: You can use these envvars to configure the make process:
|
|
# (note that these are all optional)
|
|
#
|
|
# CFLAGS - Extra C compiler options for libraries and for
|
|
# executables
|
|
# C_USR - Extra C compiler options for libraries and for
|
|
# executables (GNU make compatible envvar)
|
|
# CLIBFLAGS - Extra C compiler options for the libraries
|
|
# HARBOURFLAGS - Extra Harbour compiler options
|
|
# PRG_USR - Extra Harbour compiler options
|
|
# (GNU make compatible envvar)
|
|
#
|
|
|
|
#
|
|
# NOTE: "echo." intentionally used instead of "echo", to avoid conflicts
|
|
# with external commands named echo.
|
|
#
|
|
|
|
!if $d(B16)
|
|
|
|
CC = bcc
|
|
AS = tasm
|
|
|
|
# Borland C/C++ (DOS 16 bits)
|
|
CFLAGS = -mh $(CFLAGS)
|
|
|
|
BIN_DIR = bin\b16
|
|
OBJ_DIR = obj\b16
|
|
LIB_DIR = lib\b16
|
|
|
|
!else
|
|
|
|
CC = bcc32
|
|
AS = tasm32
|
|
|
|
BIN_DIR = ..\..\bin\b32
|
|
OBJ_DIR = ..\..\obj\b32
|
|
LIB_DIR = ..\..\lib\b32
|
|
|
|
# This is needed, otherwise the libs may overflow when
|
|
# debug info is requested with -v -y
|
|
ARFLAGS = /P32
|
|
|
|
!endif
|
|
|
|
!if !$d(BCC_NOOPTIM)
|
|
CFLAGS = -O2 $(CFLAGS)
|
|
!endif
|
|
|
|
#
|
|
# Directory macros. These should never have to change.
|
|
#
|
|
|
|
INCLUDE_DIR = ..\..\include;include
|
|
TOOLS_DIR =
|
|
TOOLS1_DIR = examples
|
|
#
|
|
# C compiler definition and C flags. These should never have to change.
|
|
#
|
|
|
|
CFLAGS = -I$(INCLUDE_DIR) -d $(C_USR) $(CFLAGS)
|
|
CLIBFLAGS = -c $(CFLAGS) $(CLIBFLAGS)
|
|
CLIBFLAGSDEBUG = -v $(CLIBFLAGS)
|
|
HARBOURFLAGS = -i$(INCLUDE_DIR) -n -w2 -gc0 $(PRG_USR) $(HARBOURFLAGS) -p
|
|
LDFLAGS = $(LDFLAGS)
|
|
|
|
#
|
|
# Macros to access our library names
|
|
#
|
|
|
|
TOOLS_LIB = $(LIB_DIR)\html.lib
|
|
|
|
HARBOUR_EXE = $(BIN_DIR)\harbour.exe
|
|
|
|
#
|
|
# Rules
|
|
#
|
|
|
|
#
|
|
# TOOLS.LIB rules
|
|
#
|
|
TOOLS_LIB_OBJS = \
|
|
$(OBJ_DIR)\ohtm.obj \
|
|
$(OBJ_DIR)\htmbrows.obj \
|
|
$(OBJ_DIR)\oedit.obj \
|
|
$(OBJ_DIR)\ofile.obj \
|
|
$(OBJ_DIR)\jlist.obj \
|
|
$(OBJ_DIR)\oini.obj \
|
|
$(OBJ_DIR)\jwindow.obj \
|
|
$(OBJ_DIR)\ocgi.obj \
|
|
$(OBJ_DIR)\oframe.obj \
|
|
$(OBJ_DIR)\counter.obj \
|
|
$(OBJ_DIR)\errorsys.obj \
|
|
$(OBJ_DIR)\htmutil.obj
|
|
|
|
#
|
|
# Our default target
|
|
#
|
|
|
|
all: \
|
|
$(TOOLS_LIB) \
|
|
|
|
#
|
|
# Library dependencies and build rules
|
|
#
|
|
|
|
$(TOOLS_LIB) : $(TOOLS_LIB_OBJS)
|
|
|
|
|
|
$(OBJ_DIR)\ohtm.c : ohtm.prg
|
|
$(HARBOUR_EXE) $(HARBOURFLAGS) $** -o$@
|
|
|
|
$(OBJ_DIR)\ohtm.obj : $(OBJ_DIR)\ohtm.c
|
|
$(CC) $(CLIBFLAGS) -o$@ $**
|
|
tlib $(TOOLS_LIB) $(ARFLAGS) -+$@,,
|
|
|
|
$(OBJ_DIR)\htmbrows.c : htmbrows.prg
|
|
$(HARBOUR_EXE) $(HARBOURFLAGS) $** -o$@
|
|
|
|
$(OBJ_DIR)\htmbrows.obj : $(OBJ_DIR)\htmbrows.c
|
|
$(CC) $(CLIBFLAGS) -o$@ $**
|
|
tlib $(TOOLS_LIB) $(ARFLAGS) -+$@,,
|
|
|
|
$(OBJ_DIR)\oedit.c : oedit.prg
|
|
$(HARBOUR_EXE) $(HARBOURFLAGS) $** -o$@
|
|
|
|
$(OBJ_DIR)\oedit.obj : $(OBJ_DIR)\oedit.c
|
|
$(CC) $(CLIBFLAGS) -o$@ $**
|
|
tlib $(TOOLS_LIB) $(ARFLAGS) -+$@,,
|
|
|
|
$(OBJ_DIR)\ofile.c : ofile.prg
|
|
$(HARBOUR_EXE) $(HARBOURFLAGS) $** -o$@
|
|
|
|
$(OBJ_DIR)\ofile.obj : $(OBJ_DIR)\ofile.c
|
|
$(CC) $(CLIBFLAGS) -o$@ $**
|
|
tlib $(TOOLS_LIB) $(ARFLAGS) -+$@,,
|
|
|
|
$(OBJ_DIR)\jlist.c : jlist.prg
|
|
$(HARBOUR_EXE) $(HARBOURFLAGS) $** -o$@
|
|
|
|
$(OBJ_DIR)\jlist.obj : $(OBJ_DIR)\jlist.c
|
|
$(CC) $(CLIBFLAGS) -o$@ $**
|
|
tlib $(TOOLS_LIB) $(ARFLAGS) -+$@,,
|
|
|
|
|
|
$(OBJ_DIR)\oini.c : oini.prg
|
|
$(HARBOUR_EXE) $(HARBOURFLAGS) $** -o$@
|
|
|
|
$(OBJ_DIR)\oini.obj : $(OBJ_DIR)\oini.c
|
|
$(CC) $(CLIBFLAGS) -o$@ $**
|
|
tlib $(TOOLS_LIB) $(ARFLAGS) -+$@,,
|
|
|
|
$(OBJ_DIR)\jwindow.c : jwindow.prg
|
|
$(HARBOUR_EXE) $(HARBOURFLAGS) $** -o$@
|
|
|
|
$(OBJ_DIR)\jwindow.obj : $(OBJ_DIR)\jwindow.c
|
|
$(CC) $(CLIBFLAGS) -o$@ $**
|
|
tlib $(TOOLS_LIB) $(ARFLAGS) -+$@,,
|
|
|
|
$(OBJ_DIR)\ocgi.c : ocgi.prg
|
|
$(HARBOUR_EXE) $(HARBOURFLAGS) $** -o$@
|
|
|
|
$(OBJ_DIR)\ocgi.obj : $(OBJ_DIR)\ocgi.c
|
|
$(CC) $(CLIBFLAGS) -o$@ $**
|
|
tlib $(TOOLS_LIB) $(ARFLAGS) -+$@,,
|
|
|
|
$(OBJ_DIR)\oframe.c : oframe.prg
|
|
$(HARBOUR_EXE) $(HARBOURFLAGS) $** -o$@
|
|
|
|
$(OBJ_DIR)\oframe.obj : $(OBJ_DIR)\oframe.c
|
|
$(CC) $(CLIBFLAGS) -o$@ $**
|
|
tlib $(TOOLS_LIB) $(ARFLAGS) -+$@,,
|
|
|
|
$(OBJ_DIR)\counter.c : counter.prg
|
|
$(HARBOUR_EXE) $(HARBOURFLAGS) $** -o$@
|
|
|
|
$(OBJ_DIR)\counter.obj : $(OBJ_DIR)\counter.c
|
|
$(CC) $(CLIBFLAGS) -o$@ $**
|
|
tlib $(TOOLS_LIB) $(ARFLAGS) -+$@,,
|
|
|
|
$(OBJ_DIR)\errorsys.c : errorsys.prg
|
|
$(HARBOUR_EXE) $(HARBOURFLAGS) $** -o$@
|
|
|
|
$(OBJ_DIR)\errorsys.obj : $(OBJ_DIR)\errorsys.c
|
|
$(CC) $(CLIBFLAGS) -o$@ $**
|
|
tlib $(TOOLS_LIB) $(ARFLAGS) -+$@,,
|
|
|
|
$(OBJ_DIR)\htmutil.c : htmutil.prg
|
|
$(HARBOUR_EXE) $(HARBOURFLAGS) $** -o$@
|
|
|
|
$(OBJ_DIR)\htmutil.obj : $(OBJ_DIR)\htmutil.c
|
|
$(CC) $(CLIBFLAGS) -o$@ $**
|
|
tlib $(TOOLS_LIB) $(ARFLAGS) -+$@,,
|
|
|