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.

58 lines
1.5 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 = PRSTEST
  16. all: $(proj).exe
  17. # force a complete rebuild from source.
  18. cleanall: clean
  19. -del *.exe
  20. #clean up everything but the .EXEs.
  21. clean:
  22. -del *.res
  23. -del *.?bj
  24. -del *.map
  25. # Update the resource if necessary
  26. $(proj).res: $(srcdir)\$(proj).rc $(srcdir)\$(proj).h
  27. $(rc) $(cinclude) $(rcvars) -r -fo $(proj).res $(cvars) $(srcdir)\$(proj).rc
  28. !IF defined(CPU)
  29. cvtres -$(CPU) $(proj).res -o $(proj).rbj
  30. !ENDIF
  31. # Update the object file if necessary
  32. $(proj).obj: $(srcdir)\$(proj).c $(srcdir)\$(proj).h
  33. $(cc) $(cflags) $(cinclude) $(cvars) $(cdebug) $(srcdir)\$(proj).c
  34. # Since the link line has some severe differences depending on what
  35. # platform we are running on, we need to special case this so that
  36. # we execute the correct commands:
  37. $(proj).exe: $(proj).obj $(proj).res $(proj).def
  38. !if defined(CPU)
  39. # This is for Windows NT:
  40. $(link) $(linkdebug) $(guiflags) $(proj).obj $(WINTAB)\lib\$(CPU)\wintab32.lib $(guilibs) VERSION.LIB $(proj).rbj -out:$(proj).exe
  41. !ENDIF
  42. !if !defined(CPU)
  43. # This is for Windows DOS:
  44. $(link) $(guiflags) $(proj).obj ,,, $(WINTAB)\lib\wintabx.lib $(guilibs) , $(proj).DEF
  45. rc $(proj).res
  46. !ENDIF