by ruben Dario » Mon Oct 29, 2012 9:59 pm
Saludos, Espera que le sirva
yo lo compile asi,
Construyo un archivo .bat
asi
\xharbour\bin\hbmake genepx_h.bc
construyo un archivo.bc
asi
#BCC
VERSION=BCB.01
!ifndef CC_DIR
CC_DIR = $(MAKE_DIR)
!endif
!ifndef HB_DIR
HB_DIR = $(HARBOUR_DIR)
!endif
DEFX=__HARBOUR__
ifeq ($(DEBUG),)
DEBUG=__NODEBUG__
endif
ifeq ($(PRG_COMPILER),XHARBOUR)
DEFX=__XHARBOUR__
endif
FWDIR = \fwh
#lparam= /L /M /Q ANTES ASI/L /N /W
RECURSE= NO
SHELL =
COMPRESS = YES
EXTERNALLIB = NO
XFWH = NO
FILESTOADD = 1
WARNINGLEVEL = 0
USERDEFINE =
USERINCLUDE =
GUI = NO
MT = NO
INCLU = include
SRC00 = .\
SRC01 = prg
SRC02 = obj
PROJECT = PLASMENU.exe $(PR)
OBJFILES = $(SRC02)\PXPMENU.obj //
$(SRC02)\PXP0013.obj //
$(SRC02)\PXPASIG.obj //
$(SRC02)\PXPASIG1.obj //
$(SRC02)\PXPTBR22.obj //
$(SRC02)\PXPTBR23.obj //
$(SRC02)\PXPFASTR_1.obj //
$(OB)
PRGFILES = $(SRC01)\PXPMENU.PRG //
$(SRC01)\PXP0013.PRG //
$(SRC01)\PXPASIG.PRG //
$(SRC01)\PXPASIG1.PRG //
$(SRC01)\PXPTBR22.PRG //
$(SRC01)\PXPTBR23.PRG //
$(SRC01)\PXPFASTR_1.PRG //
$(PS)
# $(SRC01)\PXP506.PRG // $(SRC02)\PXP506.obj //
OBJCFILES = $(OBC)
CFILES = $(CF)
RESFILES =
RESDEPEN =
TOPMODULE = $(SRC01)\PLASMENU.PRG
LIBFILES = lang.lib vm.lib rtl.lib rdd.lib macro.lib pp.lib dbfntx.lib dbfcdx.lib dbffpt.lib common.lib gtwin.lib codepage.lib ct.lib tip.lib pcrepos.lib hsx.lib hbsix.lib debug.lib $(SRC00)\lib\librub_xh.lib $(SRC00)\lib\librub1_xh.lib $(SRC00)\lib\grump_xh.lib $(SRC00)\lib\libsuper_xh.lib $(SRC00)\lib\dialog32_xh.lib $(SRC00)\lib\filexls_xh.lib $(FWDIR)\LIB\Fivehx.lib $(FWDIR)\LIB\FiveHC.lib $(SRC00)\lib\dolphin_xh.lib $(SRC00)\lib\libmysql.lib
rem zlib.lib hbzip.lib uuid.lib $(CC_DIR)\lib\cw32.lib $(CC_DIR)\lib\import32.lib $(CC_DIR)\lib\psdk\psapi.lib $(CC_DIR)\lib\psdk\odbc32.lib $(CC_DIR)\lib\psdk\nddeapi.lib $(CC_DIR)\lib\psdk\iphlpapi.lib $(CC_DIR)\lib\psdk\msimg32.lib $(CC_DIR)\lib\psdk\rasapi32.lib
rem $(SRC00)\lib\suplib.lib $(SRC00)\lib\super_x.lib $(SRC00)\lib\libsupe.lib
rem set HB_LIBLIST= common.lib debug.lib vm.lib rtl.lib pcrepos.lib gtwin.lib lang.lib rdd.lib macro.lib pp.lib dbffpt.lib dbfntx.lib dbfcdx.lib hsx.lib hbsix.lib ct.lib tip.lib sql.lib oci.lib fbclient_bc.lib libpq.lib odbccp32.lib libmysql.lib odbc32.lib
EXTLIBFILES =
DEFFILE =
HARBOURFLAGS = -w0
CFLAG1 = -OS $(SHELL) $(CFLAGS) -d -c -L$(HB_DIR)\lib
CFLAG2 = -I$(HB_DIR)\include;$(CC_DIR)\include;I:\FIVEDOS\INCLUDE
RFLAGS =
LFLAGS = -L$(CC_DIR)\lib\obj;$(CC_DIR)\lib;$(HB_DIR)\lib -Gn -M -m -s -Tpe -x -ap
IFLAGS =
LINKER = ilink32
ALLOBJ = c0x32.obj $(OBJFILES) $(OBJCFILES)
ALLRES = $(RESDEPEN)
ALLLIB = $(LIBFILES) import32.lib cw32.lib
.autodepend
#DEPENDS
#COMMANDS
.cpp.obj:
$(CC_DIR)\BIN\bcc32 $(CFLAG1) $(CFLAG2) -o$* $**
.c.obj:
$(CC_DIR)\BIN\bcc32 -I$(HB_DIR)\include $(CFLAG1) $(CFLAG2) -o$* $**
.prg.obj:
$(HB_DIR)\bin\harbour -D__EXPORT__ -D$(DEFX) -n -go -I$(HB_DIR)\include;$(SRC00)\include $(HARBOURFLAGS) -o$* $** > error.log
#$(HBDIR)\bin\harbour $< /L /M /Q /Oobj\ /I.;$(HBDIR)\include;$(fprg)\include > comp.log
.rc.res:
$(CC_DIR)\BIN\brcc32 $(RFLAGS) $<
#BUILD
$(PROJECT): $(CFILES) $(OBJFILES) $(RESDEPEN) $(DEFFILE)
$(CC_DIR)\BIN\$(LINKER) @&&!
$(LFLAGS) +
$(ALLOBJ), +
$(PROJECT),, +
$(ALLLIB), +
$(DEFFILE), +
$(ALLRES)
!