makefile.intel 2.6 KB
Newer Older
1 2 3
# Makefile for libpng
# Microsoft Visual C++ with Intel C/C++ Compiler 4.0 and later

4
# Copyright (C) 2006 Glenn Randers-Pehrson
5 6
# Copyright (C) 2000, Pawel Mrochen, based on makefile.msc which is
# copyright 1995 Guy Eric Schalnat, Group 42, Inc.
7
#
8
# This code is released under the libpng license.
9
# For conditions of distribution and use, see the disclaimer
10
# and license in png.h
11
#
12
# To use, do "nmake /f scripts\makefile.intel"
13
#
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
# ------------------- Intel C/C++ Compiler 4.0 and later -------------------

# Where the zlib library and include files are located
ZLIBLIB=..\zlib
ZLIBINC=..\zlib

# Target CPU
CPU=6		# Pentium II
#CPU=5		# Pentium

# Calling convention
CALLING=r	# __fastcall
#CALLING=z	# __stdcall
#CALLING=d	# __cdecl

# Uncomment next to put error messages in a file
#ERRFILE=>>pngerrs

# --------------------------------------------------------------------------

CC=icl -c
35
CFLAGS=-DPNG_CONFIGURE_LIBPNG -O2 -G$(CPU)$(CALLING) -Qip -Qunroll4 -I$(ZLIBINC) -nologo
36 37 38 39 40
LD=link
LDFLAGS=/SUBSYSTEM:CONSOLE /NOLOGO

O=.obj

41 42
OBJS=png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O) \
pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O) \
43
pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O)
44

45
all: test
46

47
png$(O): png.h pngconf.h pngpriv.h
48 49
	$(CC) $(CFLAGS) $*.c $(ERRFILE)

50
pngset$(O): png.h pngconf.h pngpriv.h
51 52
	$(CC) $(CFLAGS) $*.c $(ERRFILE)

53
pngget$(O): png.h pngconf.h pngpriv.h
54 55
	$(CC) $(CFLAGS) $*.c $(ERRFILE)

56
pngread$(O): png.h pngconf.h pngpriv.h
57 58
	$(CC) $(CFLAGS) $*.c $(ERRFILE)

59
pngpread$(O): png.h pngconf.h pngpriv.h
60 61
	$(CC) $(CFLAGS) $*.c $(ERRFILE)

62
pngrtran$(O): png.h pngconf.h pngpriv.h
63 64
	$(CC) $(CFLAGS) $*.c $(ERRFILE)

65
pngrutil$(O): png.h pngconf.h pngpriv.h
66 67
	$(CC) $(CFLAGS) $*.c $(ERRFILE)

68
pngerror$(O): png.h pngconf.h pngpriv.h
69 70
	$(CC) $(CFLAGS) $*.c $(ERRFILE)

71
pngmem$(O): png.h pngconf.h pngpriv.h
72 73
	$(CC) $(CFLAGS) $*.c $(ERRFILE)

74
pngrio$(O): png.h pngconf.h pngpriv.h
75 76
	$(CC) $(CFLAGS) $*.c $(ERRFILE)

77
pngwio$(O): png.h pngconf.h pngpriv.h
78 79
	$(CC) $(CFLAGS) $*.c $(ERRFILE)

80
pngtrans$(O): png.h pngconf.h pngpriv.h
81 82
	$(CC) $(CFLAGS) $*.c $(ERRFILE)

83
pngwrite$(O): png.h pngconf.h pngpriv.h
84 85
	$(CC) $(CFLAGS) $*.c $(ERRFILE)

86
pngwtran$(O): png.h pngconf.h pngpriv.h
87 88
	$(CC) $(CFLAGS) $*.c $(ERRFILE)

89
pngwutil$(O): png.h pngconf.h pngpriv.h
90 91 92 93 94 95 96 97 98
	$(CC) $(CFLAGS) $*.c $(ERRFILE)

libpng.lib: $(OBJS)
	if exist libpng.lib del libpng.lib
	lib /NOLOGO /OUT:libpng.lib $(OBJS)

pngtest.exe: pngtest.obj libpng.lib
	$(LD) $(LDFLAGS) /OUT:pngtest.exe pngtest.obj libpng.lib $(ZLIBLIB)\zlib.lib

99 100 101
pngtest$(O): png.h pngconf.h
	$(CC) $(CFLAGS) $*.c $(ERRFILE)

102 103 104 105 106
test: pngtest.exe
	pngtest.exe


# End of makefile for libpng