summaryrefslogtreecommitdiff
path: root/Build/source/libs/regex/win32.mak
blob: 9c63f0a22166448786a7ad957331b42e9c208e25 (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
################################################################################
#
# Makefile  : Regex
# 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:40:58 popineau>
#
################################################################################
root_srcdir=..\..
!ifdef DEVELOPMENT
INCLUDE=$(INCLUDE);$(root_srcdir)\texk.development
!else
INCLUDE=$(INCLUDE);$(root_srcdir)\texk
!endif

USE_GNUW32 = 1
USE_REGEX = 1
MAKE_REGEX = 1

!include <msvc/common.mak>

DEFS= $(DEFS) -DHAVE_CONFIG_H

programs = $(regexdll)
libfiles = $(regexlib)
includefiles = regex.h
objects = $(objdir)\regex.obj

default: all

all: $(objdir) $(regex)

lib: $(objdir) $(regexlib)

!ifdef REGEX_DLL
DEFS = $(DEFS) -DMAKE_REGEX_DLL

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

$(regexdll): $(objects) $(objdir)\regex.res
	$(link_dll) $(**) $(regexlib:.lib=.exp) $(conlibs)
!else
$(regexlib): $(objdir) $(objects)
	$(archive) $(objects)
!endif

!include <msvc/config.mak>
!include <msvc/install.mak>

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

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

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