Jump to content
Fivewin Brasil

Arquivo RES no Pelles C


crisvam

Recommended Posts

Boa tarde.
O Pelles salva o .rc 
O arquivo .res é criado automaticamente no processo de compilação.
Uso um arquivo .mak  como o exemplo a seguir:
 

# ---------------------------------------------------------------------------
VERSION = BCB.01
# ---------------------------------------------------------------------------
!ifndef BCB
   BCB = $(MAKEDIR)\..
!endif
!ifndef BHC
   BHC = E:\xHarbour
!endif
!ifndef FWH
   FWH=E:\FWH
!endif
# ---------------------------------------------------------------------------
PROJECT  = 3189001.EXE
OBJFILES = 3189001.obj

 

CFILES   = 3189001.c

RESFILES = faz.RES

 

RESDEPEN = $(RESFILES)
LIBFILES = E:\FWH\lib\FiveHX.lib      \
           E:\FWH\lib\FiveHC.lib      \
           E:\xHarbour\lib\rtl.lib      \
           E:\xHarbour\lib\vm.lib       \
           E:\xHarbour\lib\gtgui.lib    \
           E:\xHarbour\lib\lang.lib     \
           E:\xHarbour\lib\macro.lib    \
           E:\xHarbour\lib\rdd.lib      \
           E:\xHarbour\lib\dbfntx.lib   \
           E:\xHarbour\lib\dbfcdx.lib   \
           E:\XHARBOUR\LIB\HBSIX.LIB    \
           E:\XHARBOUR\LIB\DBFFPT.LIB   \
           E:\XHARBOUR\LIB\PCREPOS.LIB  \
           E:\XHARBOUR13\LIB\DBFFPT.LIB   \
           E:\xHarbour\lib\common.lib   \
           E:\xHarbour\lib\pp.lib       \
           E:\BORLAND\bcc55\lib\cw32.lib        \
           E:\BORLAND\bcc55\lib\import32.lib    \
           E:\BORLAND\bcc55\lib\PSDK\odbc32.lib \
           E:\BORLAND\bcc55\lib\wininet.lib

DEFFILE =
# ---------------------------------------------------------------------------
CFLAG1 =  -O2 $(CFLAGS) -d -L$(BHC)\lib\b32 -c -M
CFLAG2 =  -I$(BHC)\include;$(FWH)\include;$(BCB)\include;$(BCB)\include\vcl
PFLAGS =
RFLAGS =
LFLAGS = -L$(BCB)\lib\obj;$(BCB)\lib;$(BHC)\lib;$(BHC)\lib\b32 -Gn -aa -Tpe -s
IFLAGS =
LINKER = ilink32
# ---------------------------------------------------------------------------
ALLOBJ = c0w32.obj $(OBJFILES)
ALLRES = $(RESFILES)
ALLLIB = $(LIBFILES)
# ---------------------------------------------------------------------------
.autodepend

$(PROJECT): $(CFILES) $(OBJFILES) $(RESDEPEN) $(DEFFILE)
    $(BCB)\BIN\$(LINKER) @&&!
    $(LFLAGS) +
    $(ALLOBJ), +
    $(PROJECT),, +
    $(ALLLIB), +
    $(DEFFILE), +
    $(ALLRES)
!

.cpp.obj:
    $(BCB)\BIN\bcc32 $(CFLAG1) $(CFLAG2) -o$* $*

.c.obj:
    $(BCB)\BIN\bcc32 -I$(BHC)\include $(CFLAG1) $(CFLAG2) -o$* $**

.prg.c:
    $(BHC)\bin\harbour /m/n/a/q -I$(FWH)\include;$(BHC)\include -o$* $**

.rc.res:
    $(BCB)\BIN\brcc32 -w32  $(RFLAGS) $<
#-----------------------------------------------------------------------------

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...