~ubuntu-branches/ubuntu/jaunty/luatex/jaunty

« back to all changes in this revision

Viewing changes to src/texk/web2c/web2c/win32.mak

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Preining
  • Date: 2007-09-24 12:56:11 UTC
  • Revision ID: james.westby@ubuntu.com-20070924125611-a8ge689azbptxvla
Tags: upstream-0.11.2
ImportĀ upstreamĀ versionĀ 0.11.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
################################################################################
 
2
#
 
3
# Makefile  : Web2C / Web2C converter
 
4
# Author    : Fabrice Popineau <Fabrice.Popineau@supelec.fr>
 
5
# Platform  : Win32, Microsoft VC++ 6.0, depends upon fpTeX 0.5 sources
 
6
# Time-stamp: <04/01/07 11:12:14 popineau>
 
7
#
 
8
################################################################################
 
9
root_srcdir = ..\..\..
 
10
!ifdef DEVELOPMENT
 
11
INCLUDE=$(INCLUDE);$(root_srcdir)\texk.development
 
12
!else
 
13
INCLUDE=$(INCLUDE);$(root_srcdir)\texk
 
14
!endif
 
15
 
 
16
USE_KPATHSEA = 1
 
17
USE_GNUW32 = 1
 
18
 
 
19
!include <msvc/common.mak>
 
20
 
 
21
LEX_OUTPUT_ROOT = lex_yy
 
22
 
 
23
DEFS = -I.. $(DEFS) -DHAVE_CONFIG_H -DOEM
 
24
 
 
25
proglib = ..\lib\$(objdir)\lib.lib
 
26
programs = $(objdir)\web2c.exe  \
 
27
        $(objdir)\fixwrites.exe \
 
28
#       $(objdir)\splitup.exe
 
29
 
 
30
web2c_objects = \
 
31
        $(objdir)\y_tab.obj                     \
 
32
        $(objdir)\$(LEX_OUTPUT_ROOT).obj        \
 
33
        $(objdir)\main.obj
 
34
 
 
35
lib_sources = \
 
36
        ..\lib\basechsuffix.c   \
 
37
        ..\lib\oem.c            \
 
38
        ..\lib\chartostring.c   \
 
39
        ..\lib\coredump.c       \
 
40
        ..\lib\eofeoln.c        \
 
41
        ..\lib\fprintreal.c     \
 
42
        ..\lib\inputint.c       \
 
43
        ..\lib\input2int.c      \
 
44
        ..\lib\main.c           \
 
45
        ..\lib\openclose.c      \
 
46
        ..\lib\printversion.c   \
 
47
        ..\lib\uexit.c          \
 
48
        ..\lib\usage.c          \
 
49
        ..\lib\version.c        \
 
50
        ..\lib\zround.c         \
 
51
        ..\c-auto.h
 
52
 
 
53
default: all
 
54
 
 
55
all: $(objdir) $(programs)
 
56
 
 
57
$(objdir)\web2c.exe: $(web2c_objects) $(objdir)\web2c.res $(kpathsealib) $(proglib)
 
58
        $(link) $(**) $(conlibs) 
 
59
 
 
60
# We use y_tab.* for the sake of MS-DOS.
 
61
$(objdir)\main.obj: main.c y_tab.h
 
62
 
 
63
y_tab.c y_tab.h: web2c.y
 
64
        @echo Expect one shift/reduce conflict.
 
65
#       @set BISON_SIMPLE=$(gnushare)/bison.simple
 
66
        $(yacc) -d -v web2c.y -o y_tab.c
 
67
 
 
68
$(objdir)\$(LEX_OUTPUT_ROOT).obj: y_tab.h
 
69
 
 
70
$(LEX_OUTPUT_ROOT).c: web2c.l
 
71
        $(lex) -t web2c.l | $(sed) "/^extern int isatty YY/d" > $(LEX_OUTPUT_ROOT).c
 
72
 
 
73
$(objdir)\fixwrites.exe: $(objdir)\fixwrites.obj $(kpathsealib) $(proglib)
 
74
        $(link) $(**) $(conlibs)
 
75
 
 
76
$(objdir)\splitup.exe: $(objdir)\splitup.obj $(kpathsealib) $(proglib)
 
77
        $(link) $(**) $(conlibs)
 
78
 
 
79
$(objdir)\regfix.exe: $(objdir)\regfix.obj $(kpathsealib) $(proglib)
 
80
        $(link) $(**) $(conlibs)
 
81
 
 
82
$(proglib): $(lib_sources)
 
83
        pushd ..\lib & $(make) all & popd
 
84
 
 
85
!include <msvc/config.mak>
 
86
!include <msvc/install.mak>
 
87
!include <msvc/clean.mak>
 
88
 
 
89
clean::
 
90
        -@echo $(verbose) & ( \
 
91
                for %%i in (y_tab.c y_tab.h y.output yacc.* $(LEX_OUTPUT_ROOT).c) do $(del) %%i $(redir_stderr) \
 
92
        )
 
93
 
 
94
!include <msvc/rdepend.mak>
 
95
!include "./depend.mak"
 
96
 
 
97
# Local Variables:
 
98
# mode: Makefile
 
99
# End: