makefile for Harbour GUI framework Win32 using Borland C compiler
This commit is contained in:
35
harbour/contrib/hgf/win32/make_b32.bat
Normal file
35
harbour/contrib/hgf/win32/make_b32.bat
Normal file
@@ -0,0 +1,35 @@
|
||||
@echo off
|
||||
rem
|
||||
rem $Id$
|
||||
rem
|
||||
|
||||
if "%1" == "clean" goto CLEAN
|
||||
if "%1" == "CLEAN" goto CLEAN
|
||||
|
||||
:BUILD
|
||||
|
||||
make -fmakefile.bc %1 %2 %3 > make_b32.log
|
||||
if errorlevel 1 goto BUILD_ERR
|
||||
|
||||
:BUILD_OK
|
||||
|
||||
copy ..\..\..\lib\b32\hgfwin32.lib ..\..\..\lib\*.* > nul
|
||||
goto EXIT
|
||||
|
||||
:BUILD_ERR
|
||||
|
||||
notepad make_b32.log
|
||||
goto EXIT
|
||||
|
||||
:CLEAN
|
||||
if exist ..\..\..\lib\b32\hgfwin32.lib del ..\..\..\lib\b32\hgfwin32.lib
|
||||
if exist ..\..\..\lib\b32\hgfwin32.bak del ..\..\..\lib\b32\hgfwin32.bak
|
||||
if exist ..\..\..\obj\b32\win321.obj del ..\..\..\obj\b32\win32.obj
|
||||
if exist ..\..\..\obj\b32\tform.obj del ..\..\..\obj\b32\tform.obj
|
||||
if exist ..\..\..\obj\b32\tmenu.obj del ..\..\..\obj\b32\tmenu.obj
|
||||
if exist ..\..\..\obj\b32\tmenuitm.obj del ..\..\..\obj\b32\tmenuitm.obj
|
||||
|
||||
goto EXIT
|
||||
|
||||
:EXIT
|
||||
|
||||
30
harbour/contrib/hgf/win32/makefile.bc
Normal file
30
harbour/contrib/hgf/win32/makefile.bc
Normal file
@@ -0,0 +1,30 @@
|
||||
# makefile for Borland C/C++ 32 bits
|
||||
# Building of hgfwin32.lib - Harbour GUI framework for Win32
|
||||
|
||||
INCLUDE_DIR = ..\..\..\include
|
||||
|
||||
BIN_DIR = ..\..\..\bin\b32
|
||||
OBJ_DIR = ..\..\..\obj\b32
|
||||
LIB_DIR = ..\..\..\lib\b32
|
||||
|
||||
$(LIB_DIR)\hgfwin32.lib : \
|
||||
$(OBJ_DIR)\win32.obj \
|
||||
$(OBJ_DIR)\tform.obj \
|
||||
$(OBJ_DIR)\tmenu.obj \
|
||||
$(OBJ_DIR)\tmenuitm.obj
|
||||
|
||||
$(OBJ_DIR)\win32.obj : win32.c
|
||||
$(OBJ_DIR)\tform.c : tform.prg
|
||||
$(OBJ_DIR)\tform.obj : $(OBJ_DIR)\tform.c
|
||||
$(OBJ_DIR)\tmenu.c : tmenu.prg
|
||||
$(OBJ_DIR)\tmenu.obj : $(OBJ_DIR)\tmenu.c
|
||||
$(OBJ_DIR)\tmenuitm.c : tmenuitm.prg
|
||||
$(OBJ_DIR)\tmenuitm.obj : $(OBJ_DIR)\tmenuitm.c
|
||||
|
||||
.c.obj:
|
||||
bcc32 $(CLIBFLAGS) -c -O2 -I$(INCLUDE_DIR) -o$@ $<
|
||||
tlib $(LIB_DIR)\hgfwin32.lib -+$@,,
|
||||
|
||||
.prg.c:
|
||||
$(BIN_DIR)\harbour.exe $< -q0 -w -es2 -gc0 -n -i$(INCLUDE_DIR) -o$@
|
||||
|
||||
Reference in New Issue
Block a user