makefile.intel 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. # Makefile for libpng
  2. # Microsoft Visual C++ with Intel C/C++ Compiler 4.0 and later
  3. # Copyright (C) 2006, 2014 Glenn Randers-Pehrson
  4. # Copyright (C) 2000, Pawel Mrochen, based on makefile.msc which is
  5. # copyright 1995 Guy Eric Schalnat, Group 42, Inc.
  6. #
  7. # This code is released under the libpng license.
  8. # For conditions of distribution and use, see the disclaimer
  9. # and license in png.h
  10. #
  11. # To use, do "nmake /f scripts\makefile.intel"
  12. #
  13. # ------------------- Intel C/C++ Compiler 4.0 and later -------------------
  14. # Where the zlib library and include files are located
  15. ZLIBLIB=..\zlib
  16. ZLIBINC=..\zlib
  17. # Target CPU
  18. CPU=6 # Pentium II
  19. #CPU=5 # Pentium
  20. # Calling convention
  21. CALLING=r # __fastcall
  22. #CALLING=z # __stdcall
  23. #CALLING=d # __cdecl
  24. # Uncomment next to put error messages in a file
  25. #ERRFILE=>>pngerrs
  26. # --------------------------------------------------------------------------
  27. CC=icl -c
  28. CPPFLAGS=-I$(ZLIBINC)
  29. CFLAGS=-O2 -G$(CPU)$(CALLING) -Qip -Qunroll4 -nologo
  30. LD=link
  31. LDFLAGS=/SUBSYSTEM:CONSOLE /NOLOGO
  32. O=.obj
  33. OBJS=png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O) \
  34. pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O) \
  35. pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O)
  36. all: test
  37. # see scripts/pnglibconf.mak for more options
  38. pnglibconf.h: scripts/pnglibconf.h.prebuilt
  39. cp scripts/pnglibconf.h.prebuilt $@
  40. png$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  41. $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
  42. pngset$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  43. $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
  44. pngget$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  45. $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
  46. pngread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  47. $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
  48. pngpread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  49. $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
  50. pngrtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  51. $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
  52. pngrutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  53. $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
  54. pngerror$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  55. $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
  56. pngmem$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  57. $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
  58. pngrio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  59. $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
  60. pngwio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  61. $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
  62. pngtrans$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  63. $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
  64. pngwrite$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  65. $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
  66. pngwtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  67. $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
  68. pngwutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  69. $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
  70. libpng.lib: $(OBJS)
  71. if exist libpng.lib del libpng.lib
  72. lib /NOLOGO /OUT:libpng.lib $(OBJS)
  73. pngtest.exe: pngtest.obj libpng.lib
  74. $(LD) $(LDFLAGS) /OUT:pngtest.exe pngtest.obj libpng.lib $(ZLIBLIB)\zlib.lib
  75. pngtest$(O): png.h pngconf.h pnglibconf.h
  76. $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
  77. test: pngtest.exe
  78. pngtest.exe
  79. # End of makefile for libpng