1 # This file is part of the FreeType project.
3 # It builds the library and test programs for emx-gcc under OS/2 or under
4 # Unix with extra debugging capabilities.
6 # You will need GNU make.
8 # Use this file while in the lib directory with the following statement:
10 # make -f arch/debugger/Makefile
13 FT_MAKEFILE
= $(ARCH
)/Makefile
17 #CFLAGS = -W -Wall -O0 -g -ansi -pedantic -I$(ARCH) -I. -Iextend
19 CFLAGS
= -Wall
-O0
-g
-ansi
-I
$(ARCH
) -I.
-Iextend
21 #CFLAGS = -Wall -ansi -pedantic -O2 -s -I$(ARCH) -I. -Iextend
23 # Detect OS/2 to add the flag -DOS2 when compiling ttinterp.c
29 OS
:= UNIX
# Unix build otherwise
34 TTMEMORY
= .
/ttmemory.c
37 PORT
= $(TTFILE
) $(TTMEMORY
) $(TTMUTEX
)
39 SRC_X
= extend
/ftxgasp.c extend
/ftxkern.c extend
/ftxpost.c \
40 extend
/ftxcmap.c extend
/ftxwidth.c extend
/ftxsbit.c \
41 extend
/ftxgsub.c extend
/ftxgpos.c extend
/ftxopen.c \
43 OBJS_X
= $(SRC_X
:.c
=.o
)
45 SRC_M
= ttapi.c ttcache.c ttcalc.c ttcmap.c ttdebug.c \
46 ttgload.c ttinterp.c ttload.c ttobjs.c \
47 ttraster.c ttextend.c
$(PORT
)
48 OBJS_M
= $(SRC_M
:.c
=.o
) $(OBJS_X
)
50 SRC_S
= $(ARCH
)/freetype.c
51 OBJ_S
= $(SRC_S
:.c
=.o
)
52 OBJS_S
= $(OBJ_S
) $(OBJS_X
)
54 # We place the library file in the ARCH directory, so that it doesn't
55 # interfere with the normal build.
57 LIBTTF_A
= $(ARCH
)/libttf.a
60 $(CC
) $(CFLAGS
) -c
-o
$@
$< -D
$(OS
)
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
)
71 $(OBJ_S
): $(SRC_S
) $(SRC_M
)
73 $(LIBTTF_A
): $($(LIB_FILES
))
79 -$(RM
) $(subst /,\
,$(LIBTTF_A
))
80 -$(RM
) $(subst /,\
,$(OBJS_S
))
89 depend
: $(SRC_S
) $(SRC_M
) $(SRC_X
)
90 $(CC
) $(CFLAGS
) -E
-M
$^
> dep.end
92 ifeq (dep.end
,$(wildcard dep.end
))