Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

88 lines
2.6 KiB

  1. #!IF "$(CPU)" != ""
  2. #OS=NT
  3. #ENV=WIN32
  4. #!ELSE
  5. OS=DOS
  6. ENV=WIN16
  7. #!ENDIF
  8. # Environment variables LIB and INCLUDE should point to your Win SDK libraries
  9. # and include files.
  10. # Define WINTAB to point to your wintab development tree
  11. # Example: WINTAB=c:\wintab
  12. WINTAB=..\..\..
  13. !include "$(OS)$(ENV).MAK"
  14. cinclude=-I$(srcdir) -I$(WINTAB)\include
  15. proj = wthook
  16. projdll = wthkdll
  17. all: $(proj).exe $(projdll).dll
  18. # force a complete rebuild from source.
  19. cleanall: clean
  20. -del *.exe
  21. -del *.dll
  22. #clean up everything but the .EXEs.
  23. clean:
  24. -del *.lib
  25. -del *.exp
  26. -del *.res
  27. -del *.?bj
  28. -del *.map
  29. # Update the resource if necessary
  30. #$(proj).res: $(srcdir)\$(proj).rc $(srcdir)\mgrdlg.dlg $(srcdir)\mgrdlg.h $(srcdir)\$(proj).h
  31. # $(rc) $(rcvars) -r -fo $(proj).res $(cvars) $(srcdir)\$(proj).rc
  32. #!if defined(CPU)
  33. # cvtres -$(CPU) $(proj).res -o $(proj).rbj
  34. #!ENDIF
  35. OBJS = $(proj).obj
  36. DLLS = $(projdll).dll
  37. # Update the object files if necessary
  38. $(proj).obj: $(srcdir)\$(proj).c
  39. $(cc) $(cflags) $(cinclude) $(cvars) $(cdebug) $(srcdir)\$(proj).c
  40. #$(proj).obj: $(srcdir)\$(proj).c
  41. # $(cc) $(cflags) $(cinclude) $(cvars) $(cdebug) $(srcdir)\$(projdll).c
  42. $(projdll).obj: $(srcdir)\$(projdll).c
  43. $(cc) $(cflags) $(cinclude) $(cvars) $(cdebug) $(srcdir)\$(projdll).c
  44. # Update the exp file if necessary.
  45. $(projdll).exp $(projdll).lib: $(projdll).obj $(projdll).def
  46. $(implib) -machine:$(CPU) \
  47. -def:..\$(projdll).def \
  48. -out:$(projdll).lib $(projdll).obj -verbose
  49. # Since the link line has some severe differences depending on what
  50. # platform we are running on, we need to special case this so that
  51. # we execute the correct commands:
  52. #!if defined(CPU)
  53. # This is for Windows NT:
  54. #$(proj).exe: $(OBJS) ..\$(proj).def
  55. # $(link) $(linkdebug) $(guiflags) $(OBJS) \
  56. # $(WINTAB)\lib\$(CPU)\wintab32.lib $(guilibs) VERSION.LIB \
  57. # $(proj).rbj -out:$(proj).exe /machine:$(CPU)
  58. #$(projdll).dll: $(projdll).obj $(projdll).def $(projdll).exp
  59. # $(link) $(linkdebug) $(guiflags) $(projdll).obj $(projdll).exp \
  60. # $(guilibsdll) VERSION.LIB -out:$(projdll).dll \
  61. # /machine:$(CPU) -entry:_DllMainCRTStartup$(DLLENTRY) -dll
  62. #!ENDIF
  63. #!if !defined(CPU)
  64. # This is for Windows DOS:
  65. $(proj).exe: $(OBJS) $(DLLS) $(proj).def
  66. $(link) $(guiflags) $(OBJS) ,,, $(WINTAB)\lib\wintab.lib $(guilibs) , $(proj).def
  67. rc $(proj).exe
  68. $(projdll).dll: $(projdll).obj $(projdll).def
  69. $(link) $(guiflags) libentry.obj $(projdll).obj ,$(projdll).dll,, \
  70. $(WINTAB)\lib\wintab.lib $(guilibsdll) , $(projdll).DEF
  71. rc $(projdll).dll
  72. #!ENDIF