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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
# This file is part of the FreeType project.
#
# It builds the debugger for emx-gcc under OS/2 resp. under Unix.
#
# You will need GNU make.
#
# Use this file while in the `test' directory with the following statements:
#
# make -f arch/debugger/Makefile depend
# make -f arch/debugger/Makefile
#
#
# Copyright 1996-2002 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
# and distributed under the terms of the FreeType project license,
# LICENSE.TXT. By continuing to use, modify, or distribute this file you
# indicate that you have read the license and understand and accept it
# fully.
ARCH = arch/debugger
FT_MAKEFILE = $(ARCH)/Makefile
CC = gcc
LIBDIR = ../lib
LIBTTF = $(LIBDIR)/$(ARCH)/libttf.a
INCDIRS = -I$(LIBDIR) -I$(LIBDIR)/extend -I$(LIBDIR)/$(ARCH) -I.
# Note: The debugger uses non-ANSI functions to read the keyboard
# on OS/2 -- do not set the `-ansi flag here.
#
CFLAGS = -Wall -O0 -g $(INCDIRS)
SRC = fdebug.c common.c
ALLSRC = $(SRC)
ALLOBJ = $(ALLSRC:.c=.o)
# on OS/2, do not use the curses library
#
ifdef OS2_SHELL
EXE := fdebug.exe
OS := OS2
EFENCE :=
EXTRAFLAGS :=
RM := del
else
EXE := fdebug
OS := UNIX
EFENCE := -lefence
RM := rm -f
#
# POSIX TERMIOS: Do not define if you use OLD U*ix like 4.2BSD.
#
EXTRAFLAGS := HAVE_POSIX_TERMIOS
endif
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $< -D$(OS) -D$(EXTRAFLAGS)
%.exe:
$(CC) $(CFLAGS) -o $@ $^
EXEFILES = $(EXE)
.PHONY: all debug freetype freetype_debug \
clean distclean do_clean depend
all: freetype $(EXEFILES)
debug: freetype_debug $(EXEFILES)
$(EXE): fdebug.o common.o $(LIBTTF)
$(EXE):
$(CC) $(CFLAGS) -o $@ $^ $(EFENCE)
freetype:
$(MAKE) -C $(LIBDIR) -f $(FT_MAKEFILE) all
freetype_debug:
$(MAKE) -C $(LIBDIR) -f $(FT_MAKEFILE) debug
clean: do_clean
$(MAKE) -C $(LIBDIR) -f $(FT_MAKEFILE) clean
distclean: do_clean
$(MAKE) -C $(LIBDIR) -f $(FT_MAKEFILE) distclean
-$(RM) dep.end $(EXEFILES) core
do_clean:
-$(RM) $(subst /,\,$(ALLOBJ))
depend: $(ALLSRC)
$(MAKE) -C $(LIBDIR) -f $(FT_MAKEFILE) depend
$(CC) -E -MM $(INCDIRS) $^ > dep.end
ifeq (dep.end,$(wildcard dep.end))
include dep.end
endif
# end of Makefile.emx
|