summaryrefslogtreecommitdiff
path: root/Build/source/texk/bibtex8/win32.mak
blob: 9f50b15ce8e0bdcacf4a5a0a7bed04fc106cc0da (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
################################################################################
#
# Makefile  : Bibtex8
# Author    : Fabrice Popineau <Fabrice.Popineau@supelec.fr>
# Platform  : Win32, Microsoft VC++ 6.0, depends upon fpTeX 0.5 sources
# Time-stamp: <04/02/16 17:43:20 popineau>
#
################################################################################
root_srcdir = ..\..
!ifdef DEVELOPMENT
INCLUDE=$(INCLUDE);$(root_srcdir)\texk.development
!else
INCLUDE=$(INCLUDE);$(root_srcdir)\texk
!endif

USE_KPATHSEA = 1
USE_GNUW32 = 1

!include <msvc/common.mak>

#
# Object files
#
objects = $(objdir)\bibtex-1.obj $(objdir)\bibtex-2.obj $(objdir)\bibtex-3.obj \
	$(objdir)\bibtex-4.obj $(objdir)\bibtex.obj $(objdir)\utils.obj

installdirs = $(bindir) $(texmf)\bibtex\csf\base $(texmf)\doc\bibtex8

etcfiles = csf\*.csf
etcdir = $(texmf)\bibtex\csf\base

# Beware : default char type is unsigned
DEFS = -I$(kpathseadir) $(DEFS) -DSUPPORT_8BIT -J
# for FAT support, set: DEFS = -DNTFAT

programs = $(objdir)\bibtex8.exe
#
# Main target
#
default: all

all: $(objdir) $(programs)

#
# Link target. setargv.obj is provided in the compiler library directory.
#
$(objdir)\bibtex8.exe: $(objects) $(kpathsealib)
	$(link) $(objects) $(kpathsealib) $(conlibs)

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


install:: all install-dirs install-exec install-data install-doc

install-doc::
	-@echo $(verbose) & ( \
		for %%f in (00readme.txt HISTORY csfile.txt file_id.diz) do \
			$(copy) %%f $(texmf)\doc\bibtex8\%%f \
	) $(redir_stdout)

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

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