# RSRC: Adding resources to Win32 applications

RSRC adds or updates the resources from a “.res” file to the Win32 executable.

This resource tool is like the old 16-bit resource compilers. You must run the resource compiler after the linker.

RSRC can only link the Microsoft resource format from rc.exe or grc.exe. You cannot use some versions of the Watcom resource compiler.

Usage:

    	rsrc [options] resfile  exefile

Options:

      --dump: dumps resfile (does not modify exefile)

  `--touch: creates .rce file (for makefiles)`

Examples:

      rsrc test.res test.exe
      rsrc -–dump test.res

The –touch option allows to create makefiles where the linker and resource job are independent. You can rebuild the resources without linking the object file again.

    tobuild: test.exe test.rce

    test.exe: test.o
    	gcc -Zwin32 test.o

    test.rce: test.exe test.res
    	rsrc test.res test.exe

    test.res: test.rc
    	rc -r test.rc