blob: 68c9f4e6ce95393cfe76d49b096a500202e0bf5f (
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
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
|
# This file is part of the FreeType project.
#
# It builds the library for gcc under Win32.
# This Makefile will fail with MinGW32 ports of gcc and make under
# bare-bones Windows 9X, because of the limitations of command.com.
# Use Makefile.min instead.
#
# You will need GNU make.
#
# Use this file while in the lib directory with the following statement:
#
# make -f arch/win32/Makefile.gcc
#
#
# If you have the GNU gettext package installed, you can also try
#
# make -f arch/win32/Makefile.gcc HAVE_GETTEXT
ARCH = arch/win32
FT_MAKEFILE = $(ARCH)/Makefile.gcc
CC = gcc
ifndef GETTEXT
GETTEXT=NO_GETTEXT
endif
ifdef DEBUG
CFLAGS = -Wall -O2 -g -ansi -pedantic -I$(ARCH) -I. -Iextend -D$(GETTEXT)
else
CFLAGS = -Wall -ansi -pedantic -O2 -s -I$(ARCH) -I. -Iextend -D$(GETTEXT)
endif
TTFILE = ./ttfile.c
TTMEMORY = ./ttmemory.c
TTMUTEX = ./ttmutex.c
PORT = $(TTFILE) $(TTMEMORY) $(TTMUTEX)
SRC_X = extend/ftxgasp.c extend/ftxkern.c extend/ftxpost.c \
extend/ftxcmap.c extend/ftxwidth.c extend/ftxsbit.c \
extend/ftxgsub.c extend/ftxgpos.c extend/ftxgdef.c \
extend/ftxopen.c extend/ftxerr18.c
OBJS_X = $(SRC_X:.c=.o)
SRC_M = ttapi.c ttcache.c ttcalc.c ttcmap.c ttdebug.c \
ttgload.c ttinterp.c ttload.c ttobjs.c \
ttraster.c ttextend.c $(PORT)
OBJS_M = $(SRC_M:.c=.o) $(OBJS_X)
SRC_S = $(ARCH)/freetype.c
OBJ_S = $(SRC_S:.c=.o)
OBJS_S = $(OBJ_S) $(OBJS_X)
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
.PHONY: all debug clean distclean depend
all:
$(MAKE) -f $(FT_MAKEFILE) LIB_FILES=OBJS_S libttf.a
debug:
$(MAKE) -f $(FT_MAKEFILE) LIB_FILES=OBJS_M DEBUG=1 libttf.a
HAVE_GETTEXT:
$(MAKE) -f $(FT_MAKEFILE) LIB_FILES=OBJS_S GETTEXT=HAVE_GETTEXT \
libttf.a
$(OBJ_S): $(SRC_S) $(SRC_M)
libttf.a: $($(LIB_FILES))
-del $@
ar src $@ $^
clean:
-del *.o
-del extend\*.o
-del $(subst /,\,$(ARCH)/*.o)
-del response
distclean: clean
-del dep.end
-del libttf.a
depend: $(SRS_S) $(SRC_M) $(SRC_X)
$(CC) -E -M $^ > dep.end
ifeq (dep.end,$(wildcard dep.end))
include dep.end
endif
# end of Makefile.gcc
|