summaryrefslogtreecommitdiff
path: root/Build/source/texk/ttf2pk2/Makefile.dm
blob: 87d124ac2b2de49b16ae89d52d75663e452b4e3b (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
# Makefile for ttf2pk -- loyer@enst.fr, wl@gnu.org
#
# This Makefile assumes that you've already built and installed
# the FreeType library.
#
# It builds the ttf2pk and ttf2tfm for emx-gcc.
#
# You will need dmake.
#
# Use this file while with the following statement:
#
#   dmake -r -f Makefile.dm


.IMPORT: COMSPEC
SHELL := $(COMSPEC)
SHELLFLAGS := /c
GROUPSHELL := $(SHELL)
GROUPFLAGS := $(SHELLFLAGS)
GROUPSUFFIX := .bat
SHELLMETAS := *"?<>&|

CC = gcc
LIBDIR = ../../libs/freetype/lib
INCDIR = -I$(LIBDIR) -I.

# CFLAGS = -Wall -O2 -g $(INCDIR) -fbounds-checking -DHAVE_EMTEXDIR -DMSDOS
CFLAGS = -Wall -O2 -s $(INCDIR) -DHAVE_EMTEXDIR -DMSDOS

SRC = case.c emdir.c emtexdir.c errormsg.c filesrch.c ligkern.c newobj.c \
      parse.c pklib.c subfont.c texenc.c tfmaux.c ttf2pk.c ttf2tfm.c \
      ttfaux.c ttfenc.c ttflib.c vplaux.c

ttf2pkobjs = emdir.o emtexdir.o errormsg.o filesrch.o ligkern.o newobj.o \
             parse.o pklib.o subfont.o texenc.o ttf2pk.o ttfenc.o ttflib.o
ttf2tfmobjs = case.o emdir.o emtexdir.o errormsg.o filesrch.o ligkern.o \
              newobj.o parse.o subfont.o texenc.o tfmaux.o ttf2tfm.o \
              ttfaux.o ttfenc.o vplaux.o


%.o: %.c
	$(CC) $(CFLAGS) -c -o $@ $<

%.exe:
	$(CC) $(CFLAGS) -o $@ @$(mktmp $(&:t"\n")\n)


PROGRAMS = ttf2pk.exe ttf2tfm.exe

.PHONY: all clean distclean


all: $(PROGRAMS)

ttf2pk.exe: $(ttf2pkobjs) $(LIBDIR)/libttf.a
ttf2tfm.exe: $(ttf2tfmobjs) $(LIBDIR)/libttf.a


clean:
-[
	del *.o
]

distclean: clean
-[
	del dep.end
	del *.exe
	del core
]

#end of Makefile.dm