makefile.intel 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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. CP=cp
  33. # Pre-built configuration
  34. # See scripts\pnglibconf.mak for more options
  35. PNGLIBCONF_H_PREBUILT = scripts\pnglibconf.h.prebuilt
  36. O=.obj
  37. OBJS=png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O) \
  38. pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O) \
  39. pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O)
  40. all: test
  41. pnglibconf.h: $(PNGLIBCONF_H_PREBUILT)
  42. $(CP) $(PNGLIBCONF_H_PREBUILT) $@
  43. png$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  44. $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
  45. pngset$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  46. $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
  47. pngget$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  48. $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
  49. pngread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  50. $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
  51. pngpread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  52. $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
  53. pngrtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  54. $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
  55. pngrutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  56. $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
  57. pngerror$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  58. $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
  59. pngmem$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  60. $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
  61. pngrio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  62. $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
  63. pngwio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  64. $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
  65. pngtrans$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  66. $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
  67. pngwrite$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  68. $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
  69. pngwtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  70. $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
  71. pngwutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  72. $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
  73. libpng.lib: $(OBJS)
  74. if exist libpng.lib del libpng.lib
  75. lib /NOLOGO /OUT:libpng.lib $(OBJS)
  76. pngtest.exe: pngtest.obj libpng.lib
  77. $(LD) $(LDFLAGS) /OUT:pngtest.exe pngtest.obj libpng.lib $(ZLIBLIB)\zlib.lib
  78. pngtest$(O): png.h pngconf.h pnglibconf.h
  79. $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
  80. test: pngtest.exe
  81. pngtest.exe
  82. # End of makefile for libpng