| 1 |
# Makefile for ttf2pk -- [email protected], [email protected] |
| 2 |
# |
| 3 |
# This Makefile assumes that you've already built and installed |
| 4 |
# the FreeType library. |
| 5 |
# |
| 6 |
# It builds the ttf2pk and ttf2tfm for emx-gcc. |
| 7 |
# |
| 8 |
# You will need dmake. |
| 9 |
# |
| 10 |
# Use this file while with the following statement: |
| 11 |
# |
| 12 |
# dmake -r -f Makefile.dm |
| 13 |
|
| 14 |
|
| 15 |
.IMPORT: COMSPEC |
| 16 |
SHELL := $(COMSPEC) |
| 17 |
SHELLFLAGS := /c |
| 18 |
GROUPSHELL := $(SHELL) |
| 19 |
GROUPFLAGS := $(SHELLFLAGS) |
| 20 |
GROUPSUFFIX := .bat |
| 21 |
SHELLMETAS := *"?<>&| |
| 22 |
|
| 23 |
CC = gcc |
| 24 |
LIBDIR = ../../libs/freetype/lib |
| 25 |
INCDIR = -I$(LIBDIR) -I. |
| 26 |
|
| 27 |
# CFLAGS = -Wall -O2 -g $(INCDIR) -fbounds-checking -DHAVE_EMTEXDIR -DMSDOS |
| 28 |
CFLAGS = -Wall -O2 -s $(INCDIR) -DHAVE_EMTEXDIR -DMSDOS |
| 29 |
|
| 30 |
SRC = case.c emdir.c emtexdir.c errormsg.c filesrch.c ligkern.c newobj.c \ |
| 31 |
parse.c pklib.c subfont.c texenc.c tfmaux.c ttf2pk.c ttf2tfm.c \ |
| 32 |
ttfaux.c ttfenc.c ttflib.c vplaux.c |
| 33 |
|
| 34 |
ttf2pkobjs = emdir.o emtexdir.o errormsg.o filesrch.o ligkern.o newobj.o \ |
| 35 |
parse.o pklib.o subfont.o texenc.o ttf2pk.o ttfenc.o ttflib.o |
| 36 |
ttf2tfmobjs = case.o emdir.o emtexdir.o errormsg.o filesrch.o ligkern.o \ |
| 37 |
newobj.o parse.o subfont.o texenc.o tfmaux.o ttf2tfm.o \ |
| 38 |
ttfaux.o ttfenc.o vplaux.o |
| 39 |
|
| 40 |
|
| 41 |
%.o: %.c |
| 42 |
$(CC) $(CFLAGS) -c -o $@ $< |
| 43 |
|
| 44 |
%.exe: |
| 45 |
$(CC) $(CFLAGS) -o $@ @$(mktmp $(&:t"\n")\n) |
| 46 |
|
| 47 |
|
| 48 |
PROGRAMS = ttf2pk.exe ttf2tfm.exe |
| 49 |
|
| 50 |
.PHONY: all clean distclean |
| 51 |
|
| 52 |
|
| 53 |
all: $(PROGRAMS) |
| 54 |
|
| 55 |
ttf2pk.exe: $(ttf2pkobjs) $(LIBDIR)/libttf.a |
| 56 |
ttf2tfm.exe: $(ttf2tfmobjs) $(LIBDIR)/libttf.a |
| 57 |
|
| 58 |
|
| 59 |
clean: |
| 60 |
-[ |
| 61 |
del *.o |
| 62 |
] |
| 63 |
|
| 64 |
distclean: clean |
| 65 |
-[ |
| 66 |
del dep.end |
| 67 |
del *.exe |
| 68 |
del core |
| 69 |
] |
| 70 |
|
| 71 |
#end of Makefile.dm |