UNIX-like Interface

5. Makefile Commands
Although the following can be used from the command line, they are especially useful in makefiles.
  • Change .o to .obj in makefiles.

  • Some of the options that were preceded by a "-" now use "/". As an option to fpp, for example,
    UNIX: -DXXX would now be
    Windows 2000: /DXXX

  • Use the existing LIB in a makefile as a base to which other libraries are appended. LIB is set as a library path by Windows 2000. Incorrect use can remove the existing LIB path. Safer to use LIBS, which is not assigned by the system.

  • To create a named executable,
    UNIX: -o executable_name becomes
    Windows 2000: /link /out:executable_name
    where /link indicates that what follows is passed to the linker. You must add the .exe extension explicitly when specifying a name for the executable.
Note: Additional information about porting and managing large projects may be found here.