by ukoenig » Sun Sep 28, 2008 5:15 pm
Antonio,
I tested the make file, but it didn't work.
My only changes => c: to d: and filenames.
The used files : brwtools.prg, errsysw.prg and brwtools.rc
My call : Make project
--------------------------
- Code: Select all Expand view
The batch-file MAKE.BAT :
------------------------------
set oldpath=%path%
set path=d:\mingw\bin;%path%
d:\mingw\bin\mingw32-make.exe
set path=%oldpath%
The Make-file PROJECT.RMK :
----------------------------------
# gcc make example for Windows, developed by FiveTech Software
hdir=d:\harbour
hdirc=$(hdir)\source\main\w32\mingw32\harbour.exe
hlibs=$(hdir)\lib\w32\mingw32
fwh=d:\fwh
mingw=d:\mingw
all : brwtools.exe
brwtools.exe
PRG_OBJS = ./obj/brwtools.c \
./obj/errsysw.c
C_OBJS = ./obj/brwtools.o \
./obj/errsysw.o
brwtools.exe : $(PRG_OBJS) $(C_OBJS)
if not exist brwtools.rc $(mingw)\bin\gcc -o brwtools.exe ./obj/brwtools.o ./obj/errsysw.o -Wall -s -mwindows -L$(mingw)\lib -L$(hlibs) -L$(fwh)\lib -mno-cygwin -Wl,--start-group -lfivehg -lfivehgc -lgtgui -ldll -lsocket -luser32 -lwinspool -lcomctl32 -lcomdlg32 -lgdi32 -lole32 -loleaut32 -luuid -lwinmm -lvfw32 -lwsock32 -lmsimg32 -lhbbtree -lhbclipsm -lhbcommon -lhbcpage -lhbcplr -lhbct -lhbcurl -lhbfbird -lhbgd -lhbhpdf -lhbhsx -lhblang -lhbmacro -lhbmainstd -lhbmisc -lhbmsql -lhbmysql -lmysqldll -lhbmzip -lhbnf -lhbodbc -lodbc32 -lhbpcre -lhbpgsql -lhbpp -lhbrdd -lhbrtl -lhbsix -lhbsqlit3 -lhbtip -lhbusrrdd -lhbvm -lhbvpdf -lhbw32 -lhbzlib -lrddado -lrddads -lrddcdx -lrddfpt -lrddntx -lxhb -Wl,--end-group
if exist brwtools.rc $(mingw)\bin\gcc -o brwtools.exe ./obj/brwtools.o ./obj/errsysw.o _one.o -Wall -s -mwindows -L$(mingw)\lib -L$(hlibs) -L$(fwh)\lib -mno-cygwin -Wl,--start-group -lfivehg -lfivehgc -lgtgui -ldll -lsocket -luser32 -lwinspool -lcomctl32 -lcomdlg32 -lgdi32 -lole32 -loleaut32 -luuid -lwinmm -lvfw32 -lwsock32 -lmsimg32 -lhbbtree -lhbclipsm -lhbcommon -lhbcpage -lhbcplr -lhbct -lhbcurl -lhbfbird -lhbgd -lhbhpdf -lhbhsx -lhblang -lhbmacro -lhbmainstd -lhbmisc -lhbmsql -lhbmysql -lmysqldll -lhbmzip -lhbnf -lhbodbc -lodbc32 -lhbpcre -lhbpgsql -lhbpp -lhbrdd -lhbrtl -lhbsix -lhbsqlit3 -lhbtip -lhbusrrdd -lhbvm -lhbvpdf -lhbw32 -lhbzlib -lrddado -lrddads -lrddcdx -lrddfpt -lrddntx -lxhb -Wl,--end-group
./obj/%.c : %.prg
if not exist obj mkdir obj
$(hdir)\source\main\w32\mingw32\harbour.exe $< -o$@ -n -I$(hdir)\include -I$(fwh)\include
./obj/%.o : ./obj/%.c
gcc -c -o$@ -I$(hdir)\include $<
./obj/%.o : %.c
gcc -c -o$@ -I$(hdir)\include $<
Regards
Uwe
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.