summaryrefslogtreecommitdiff
path: root/Build/source/libs/expat/lib/win32.mak
blob: 32b5ab15cca5d73699557d3e7f13d67ee3853d61 (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
################################################################################
#
# Makefile  : Expat / Lib
# Author    : Fabrice Popineau <Fabrice.Popineau@supelec.fr>
# Platform  : Win32, Microsoft VC++ 6.0, depends upon fpTeX 0.5 sources
# Time-stamp: <02/09/23 17:43:55 popineau>
#
################################################################################
root_srcdir = ..\..\..
INCLUDE=$(INCLUDE);$(root_srcdir)\texk

# Makefile for expat library
# The library already compiles under win32.
# This Makefile for accomodating the needs of fpTeX.
# (maybe building a .dll later)

USE_EXPAT = 1
MAKE_EXPAT = 1

!include <msvc/common.mak>

programs = $(expatdll)
includefiles = expat.h
libfiles = $(expatlib)
objects = \
	$(objdir)\xmlrole.obj     \
	$(objdir)\xmltok.obj      \
	$(objdir)\xmlparse.obj

DEFS =  -DCOMPILED_FROM_DSP -DVERSION=\"expat_1.95.1\" $(DEFS)

default: all

all: $(objdir) $(expat)

lib: $(objdir) $(expatlib)

!ifdef EXPAT_DLL
DEFS = -DMAKE_EXPAT_DLL $(DEFS)

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

$(expatdll): $(objects) $(objdir)\expat.res
	$(link_dll) $(**) $(expatlib:.lib=.exp) $(conlibs)

!else
$(expatlib): $(objdir) $(objects)
	$(archive) $(objects)

!endif

!include <msvc/config.mak>

!include <msvc/install.mak>

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

!include <msvc/clean.mak>
!include <msvc/version.mak>

distclean clean::
	-@$(del) Release\* Debug\* *.aps *.ncb *.opt

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

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