Files
harbour-core/harbour/contrib/directx/makefile.bc
Viktor Szakats 6b02f11cb8 2007-10-21 11:21 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
- contrib/directx/media
   - contrib/directx/samples
   - contrib/directx/lib
   - contrib/directx/directx.lib
   - contrib/directx/readme.1st
   + contrib/directx/readme.txt
   + contrib/directx/test
   + contrib/directx/test/testdx.prg
   + contrib/directx/test/anima2.bmp
   + contrib/directx/test/brick1.bmp
   + contrib/directx/test/black.bmp
   + contrib/directx/test/brick2.bmp
   + contrib/directx/test/shot.bmp
   + contrib/directx/test/brick3.bmp
   - contrib/directx/buvcdx.bat
   + contrib/directx/Makefile
   + contrib/directx/makefile.bc
   + contrib/directx/makefile.vc
   + contrib/directx/make_b32.bat
   + contrib/directx/make_vc.bat
   * contrib/directx/w32_ddrw.h
   * contrib/directx/w32_ddrw.cpp
     + Added build scripts
     ! Further fixes to make it compile and run.
     * Rearranged test/readme files.
     ; Now it runs but the sample .bmps seem to be corrupted.
2007-10-21 09:23:41 +00:00

99 lines
1.9 KiB
Plaintext

#
# $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.
#
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
!if !$d(BCC_NOOPTIM)
CFLAGS = -O2 $(CFLAGS)
!endif
#
# Directory macros. These should never have to change.
#
INCLUDE_DIR = ..\..\include
TOOLS_DIR = .
#
# 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 -q0 -w2 -es2 -gc0 $(PRG_USR) $(HARBOURFLAGS)
LDFLAGS = $(LDFLAGS)
#
# Macros to access our library names
#
TOOLS_LIB = $(LIB_DIR)\hbwin32ddrw.lib
HARBOUR_EXE = $(BIN_DIR)\harbour.exe
#
# Rules
#
#
# TOOLS.LIB rules
#
TOOLS_LIB_OBJS = \
$(OBJ_DIR)\w32_ddrw.obj \
#
# Our default target
#
all: \
$(TOOLS_LIB) \
#
# Library dependencies and build rules
#
$(TOOLS_LIB) : $(TOOLS_LIB_OBJS)
#
# TOOLS.LIB dependencies
#
$(OBJ_DIR)\w32_ddrw.obj : $(TOOLS_DIR)\w32_ddrw.cpp
$(CC) $(CLIBFLAGS) -o$@ $**
tlib $(TOOLS_LIB) $(ARFLAGS) -+$@,,