makeexe.inc 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. ###################################################################
  2. #
  3. # Makefile for makeing an exe
  4. #
  5. ###################################################################
  6. LIB=
  7. !ifndef SUBSYSTEM
  8. SUBSYSTEM=windows
  9. !endif
  10. !ifdef DREAMCAST
  11. LIBS= $(LIBSFLAVOR) \
  12. strig.lib shintr.lib fulllibc.lib coredll.lib dsound.lib ddraw.lib dplayx.lib dinput.lib\
  13. dxguid.lib ole32.lib amstrmid.lib
  14. !else
  15. LIBS= $(LIBSFLAVOR) \
  16. urlmon.lib kernel32.lib user32.lib \
  17. gdi32.lib winspool.lib comdlg32.lib \
  18. advapi32.lib shell32.lib ole32.lib \
  19. oleaut32.lib uuid.lib odbc32.lib \
  20. odbccp32.lib ddraw.lib dsound.lib \
  21. dxguid.lib winmm.lib dplayx.lib \
  22. d3drm.lib amstrmid.lib dinput.lib \
  23. comctl32.lib version.lib ws2_32.lib \
  24. delayimp.lib \
  25. icqmapi.lib wininet.lib lz32.lib \
  26. fedguids.lib netapi32.lib comsupp.lib oledb.lib
  27. !endif
  28. !ifdef SPLITSYMBOLS
  29. LINKPDB= NONE
  30. !else
  31. LINKPDB= $(PDB)
  32. !endif
  33. !ifdef DREAMCAST
  34. LARGS= $(LARGSFLAVOR) $(NOLOGO) /subsystem:$(CESubsystem) \
  35. /STACK:65536,4096 /nodefaultlib \
  36. /entry:"WinMainCRTStartup" /base:"0x00010000" /align:"4096"\
  37. /delayload:netapi32.dll \
  38. /delayload:advapi32.dll \
  39. /pdb:$(LINKPDB) \
  40. /machine:SH4 \
  41. !ifdef RETAIL
  42. /LIBPATH:$(FEDEXT)\DreamCast\Lib\sh4\wince\retail \
  43. !else
  44. /LIBPATH:$(FEDEXT)\DreamCast\Lib\sh4\wince\debug \
  45. !endif
  46. /out:$(DESTDIR)\$(MAINTARGROOT).exe
  47. !else
  48. LARGS= $(LARGSFLAVOR) $(NOLOGO) /subsystem:$(SUBSYSTEM) \
  49. /pdb:$(LINKPDB) \
  50. /machine:I386 \
  51. !ifdef icap
  52. /LIBPATH:$(FEDEXT)\icecap4\lib \
  53. !endif
  54. /LIBPATH:$(DXROOT)\lib \
  55. /LIBPATH:$(FEDEXT)\Vc\Lib \
  56. /LIBPATH:$(FEDEXT)\Zone \
  57. /LIBPATH:$(FEDEXT)\ICQAPI \
  58. /LIBPATH:$(DESTDIR)\..\Guids \
  59. /out:$(DESTDIR)\$(MAINTARGROOT).exe
  60. !endif
  61. LARGSALL=$(LARGS) $(OBJS) $(RESFILE) $(LIBS) $(USERLIBS) $(DESTDIR)\pch.obj $(LARGSLOCAL)
  62. # the main (default) target in all its glory
  63. $(MAINTARGFULLPATH): $(DESTDIR) \
  64. $(USERLIBS) \
  65. $(OBJS) \
  66. $(MSGFILE) \
  67. $(RESFILE) \
  68. $(OTHEREXEDEPS)
  69. # $(BSCTARG)
  70. $(LINK) $(LARGSALL)
  71. !ifndef NOMAP
  72. $(MAPSYM) -o $(DESTDIR)\$(MAINTARGROOT).sym $(DESTDIR)\$(MAINTARGROOT).map
  73. !endif
  74. !ifdef SPLITSYMBOLS
  75. $(SPLITSYMBOLSTOOL) $(DESTDIR)\$(MAINTARGROOT).exe $(DESTDIR)\$(MAINTARGROOT).dbg
  76. !endif