summaryrefslogtreecommitdiff
path: root/Build/source/libs/libpng/win32.mak
blob: 1b488c70607ec84b3d1c83565065dac1858acdc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
################################################################################
#
# Makefile  : LibPNG
# Author    : Fabrice Popineau <Fabrice.Popineau@supelec.fr>
# Platform  : Win32, Microsoft VC++ 6.0, depends upon fpTeX 0.5 sources
# Time-stamp: <03/01/28 21:36:51 popineau>
#
################################################################################
root_srcdir = ..\..
!ifdef DEVELOPMENT
INCLUDE=$(INCLUDE);$(root_srcdir)\texk.development
!else
INCLUDE=$(INCLUDE);$(root_srcdir)\texk
!endif

USE_PNG = 1
MAKE_PNG = 1
USE_ZLIB = 1

!include <msvc/common.mak>

programs = $(pngdll)
manfiles = libpng.3 libpngpf.3 png.5
includefiles = png.h pngconf.h
libfiles = $(pnglib)
installdirs = $(installdirs) $(man3dir) $(man5dir)
objects = $(objdir)\png.obj $(objdir)\pngset.obj $(objdir)\pngget.obj        \
	$(objdir)\pngrutil.obj $(objdir)\pngtrans.obj $(objdir)\pngwutil.obj \
	$(objdir)\pngread.obj $(objdir)\pngrio.obj $(objdir)\pngwio.obj      \
	$(objdir)\pngwrite.obj $(objdir)\pngrtran.obj $(objdir)\pngwtran.obj \
	$(objdir)\pngmem.obj $(objdir)\pngerror.obj $(objdir)\pngpread.obj   \
	$(objdir)\pngvcrd.obj

default: all

all: $(objdir) $(png)

lib: $(objdir) $(png)

rcflags = $(rcflags) /l 0x409 /d "NDEBUG" /d "PNG_USE_PNGVCRD" /d PNG_VERSION_INFO_ONLY

!ifdef PNG_DLL
DEFS= $(DEFS) -DPNG_BUILD_DLL

$(pnglib): $(objdir) $(objects)
	$(archive) /DEF $(objects)

$(pngdll): $(objects) $(zliblib) $(objdir)\libpng.res $(gnuw32lib)
	$(link_dll) $(**) $(pnglib:.lib=.exp) $(conlibs)
!else
$(pnglib): $(objdir) $(objects) $(zliblib)
	$(archive) $(objects) $(zliblib)
!endif

$(objdir)\pngtest.exe: $(objdir)\pngtest.obj $(pnglib)
	$(link) /OUT:$@ $(objdir)\pngtest.obj $(pnglib) $(conlibs)

$(objdir)\pngtest.obj: pngtest.c
	$(compile) -UBUILD_PNG_DLL pngtest.c 

test: $(objdir)\pngtest.exe
	.\$(objdir)\pngtest.exe

!include <msvc/config.mak>

!include <msvc/install.mak>

install:: install-exec install-include install-lib

!include <msvc/clean.mak>

clean::
	-@$(del) pngout.png

!include <msvc/rdepend.mak>
!include "./depend.mak"

# 
# Local Variables:
# mode: makefile
# End: