1
# This file is part of the FreeType project.
3
# It builds the library and test programs for emx-gcc under OS/2.
5
# You will need GNU make.
7
# Use this file while in the lib directory with the following statements:
9
# make -f arch/os2/Makefile.emx depend
10
# make -f arch/os2/Makefile.emx
13
# Copyright 1996-2002 by
14
# David Turner, Robert Wilhelm, and Werner Lemberg.
16
# This file is part of the FreeType project, and may only be used, modified,
17
# and distributed under the terms of the FreeType project license,
18
# LICENSE.TXT. By continuing to use, modify, or distribute this file you
19
# indicate that you have read the license and understand and accept it
23
FT_MAKEFILE = $(ARCH)/Makefile.emx
27
#CFLAGS = -W -Wall -O0 -g -ansi -pedantic -I$(ARCH) -I. -Iextend
29
CFLAGS = -Wall -O3 -fno-inline -fomit-frame-pointer \
30
-g -ansi -pedantic -I$(ARCH) -I. -Iextend
32
#CFLAGS = -Wall -ansi -pedantic -O2 -s -I$(ARCH) -I. -Iextend
34
TTFILE = $(ARCH)/os2file.c
35
TTMEMORY = ./ttmemory.c
38
PORT = $(TTFILE) $(TTMEMORY) $(TTMUTEX)
40
SRC_X = extend/ftxgasp.c extend/ftxkern.c extend/ftxpost.c \
41
extend/ftxcmap.c extend/ftxwidth.c extend/ftxsbit.c \
42
extend/ftxgsub.c extend/ftxgpos.c extend/ftxopen.c \
44
OBJS_X = $(SRC_X:.c=.o)
46
SRC_M = ttapi.c ttcache.c ttcalc.c ttcmap.c ttdebug.c \
47
ttgload.c ttinterp.c ttload.c ttobjs.c \
48
ttraster.c ttextend.c $(PORT)
49
OBJS_M = $(SRC_M:.c=.o) $(OBJS_X)
51
SRC_S = $(ARCH)/freetype.c
52
OBJ_S = $(SRC_S:.c=.o)
53
OBJS_S = $(OBJ_S) $(OBJS_X)
55
SRCD_S = $(ARCH)/freetypd.c
56
OBJD_S = $(SRCD_S:.c=.o)
57
OBJDS_S = $(OBJD_S) $(OBJS_X)
60
$(CC) $(CFLAGS) -c -o $@ $<
62
.PHONY: all debug clean distclean depend
66
$(MAKE) -f $(FT_MAKEFILE) LIB_FILES=OBJS_S libttf.a
69
$(MAKE) -f $(FT_MAKEFILE) LIB_FILES=OBJS_M libttf.a
72
$(MAKE) -f $(FT_MAKEFILE) LIB_FILES=OBJDS_S libttfd.a
74
$(OBJ_S): $(SRC_S) $(SRC_M)
75
$(OBJD_S): $(SRCD_S) $(SRC_M)
77
libttf.a: $($(LIB_FILES))
88
-del $(subst /,\,$(OBJS_S))
89
-del $(subst /,\,$(OBJS_M))
95
depend: $(SRC_S) $(SRC_M) $(SRC_X)
96
$(CC) -E -MM -I$(ARCH) -I. -Iextend $^ > dep.end
98
ifeq (dep.end,$(wildcard dep.end))
102
# end of Makefile.emx