makefile.intel 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. # Makefile for libpng
  2. # Microsoft Visual C++ with Intel C/C++ Compiler 4.0 and later
  3. # Copyright (C) 2006 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. CFLAGS=-O2 -G$(CPU)$(CALLING) -Qip -Qunroll4 -I$(ZLIBINC) -nologo
  29. LD=link
  30. LDFLAGS=/SUBSYSTEM:CONSOLE /NOLOGO
  31. O=.obj
  32. OBJS=png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O) \
  33. pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O) \
  34. pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O)
  35. all: test
  36. # see scripts/pnglibconf.mak for more options
  37. pnglibconf.h: scripts/pnglibconf.h.prebuilt
  38. cp scripts/pnglibconf.h.prebuilt $@
  39. png$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  40. $(CC) $(CFLAGS) $*.c $(ERRFILE)
  41. pngset$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  42. $(CC) $(CFLAGS) $*.c $(ERRFILE)
  43. pngget$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  44. $(CC) $(CFLAGS) $*.c $(ERRFILE)
  45. pngread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  46. $(CC) $(CFLAGS) $*.c $(ERRFILE)
  47. pngpread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  48. $(CC) $(CFLAGS) $*.c $(ERRFILE)
  49. pngrtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  50. $(CC) $(CFLAGS) $*.c $(ERRFILE)
  51. pngrutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  52. $(CC) $(CFLAGS) $*.c $(ERRFILE)
  53. pngerror$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  54. $(CC) $(CFLAGS) $*.c $(ERRFILE)
  55. pngmem$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  56. $(CC) $(CFLAGS) $*.c $(ERRFILE)
  57. pngrio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  58. $(CC) $(CFLAGS) $*.c $(ERRFILE)
  59. pngwio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  60. $(CC) $(CFLAGS) $*.c $(ERRFILE)
  61. pngtrans$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  62. $(CC) $(CFLAGS) $*.c $(ERRFILE)
  63. pngwrite$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  64. $(CC) $(CFLAGS) $*.c $(ERRFILE)
  65. pngwtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  66. $(CC) $(CFLAGS) $*.c $(ERRFILE)
  67. pngwutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  68. $(CC) $(CFLAGS) $*.c $(ERRFILE)
  69. libpng.lib: $(OBJS)
  70. if exist libpng.lib del libpng.lib
  71. lib /NOLOGO /OUT:libpng.lib $(OBJS)
  72. pngtest.exe: pngtest.obj libpng.lib
  73. $(LD) $(LDFLAGS) /OUT:pngtest.exe pngtest.obj libpng.lib $(ZLIBLIB)\zlib.lib
  74. pngtest$(O): png.h pngconf.h pnglibconf.h
  75. $(CC) $(CFLAGS) $*.c $(ERRFILE)
  76. test: pngtest.exe
  77. pngtest.exe
  78. # End of makefile for libpng