Page 1 of 1

Ayuda make.exe de borland c++5.82 (RESUELTO)

PostPosted: Mon Mar 04, 2013 3:23 pm
by Patricio Avalos Aguirre
Estimados

Como puede capturar una definiciĆ³n desde make de borland 5.82

me explico

necesito capturar esto
-DPRUEBA

c:\borland\bcc582\bin\make -DPRUEBA -fwcta.rmk


en en archivo RMK

$(HBDIR)\bin\harbour $< /a /n /w1 /es2 /DPRUEBA /Oobj\ /I$(FWDIR)\include;$(HBDIR)\include;include;D:\Apl\PRGS\Lib32\tTaskpanel\include

Re: Ayuda make.exe de borland c++5.82

PostPosted: Mon Mar 04, 2013 4:42 pm
by Antonio Linares
Patricio,

Al llamar al make le proporcionas el define asi:

make -ftest.mak tipo="PRUEBA"

y desde el fichero make lo usas directamente con $( ... )

$(HBDIR)\bin\harbour $< /a /n /w1 /es2 /D$(tipo) /Oobj\ /I$(FWDIR)\include;$(HBDIR)\include;include;D:\Apl\PRGS\Lib32\tTaskpanel\include

Re: Ayuda make.exe de borland c++5.82

PostPosted: Tue Mar 05, 2013 12:21 pm
by Patricio Avalos Aguirre
Gracias Antonio, funciono perfecto