1 # This file is part of the FreeType project.
3 # It builds the library and test programs for emx-gcc under OS/2
7 # Use this file while in the lib directory with the following statement:
9 # dmake -r -f arch/os2/Makefile.dm
12 FT_MAKEFILE = $(ARCH)/Makefile.dm
18 GROUPSHELL := $(SHELL)
19 GROUPFLAGS := $(SHELLFLAGS)
25 CFLAGS = -Wall -O2 -g -ansi -pedantic -I$(ARCH) -I. -Iextend
26 # CFLAGS = -Wall -ansi -O2 -s -I$(ARCH) -I. -Iextend
28 TTFILE = $(ARCH)/os2file.c
29 TTMEMORY = ./ttmemory.c
32 PORT = $(TTFILE) $(TTMEMORY) $(TTMUTEX)
34 SRC_X = extend/ftxgasp.c extend/ftxkern.c extend/ftxpost.c \
35 extend/ftxcmap.c extend/ftxwidth.c extend/ftxsbit.c \
36 extend/ftxgsub.c extend/ftxgpos.c extend/ftxopen.c \
38 OBJS_X = $(SRC_X:.c=.o)
40 SRC_M = ttapi.c ttcache.c ttcalc.c ttcmap.c ttdebug.c \
41 ttgload.c ttinterp.c ttload.c ttobjs.c \
42 ttraster.c ttextend.c $(PORT)
43 OBJS_M = $(SRC_M:.c=.o) $(OBJS_X)
45 SRC_S = $(ARCH)/freetype.c
46 OBJ_S = $(SRC_S:.c=.o)
47 OBJS_S = $(OBJ_S) $(OBJS_X)
51 $(CC) $(CFLAGS) -c -o $@ $<
53 .PHONY: all debug clean distclean depend
57 $(FT_MAKE) -f $(FT_MAKEFILE) LIB_FILES=OBJS_S libttf.a
60 $(FT_MAKE) -f $(FT_MAKEFILE) LIB_FILES=OBJS_M libttf.a
63 $(OBJ_S): $(SRC_S) $(SRC_M)
64 $(CC) $(CFLAGS) -c -o $@ $(SRC_S)
67 libttf.a: $($(LIB_FILES))
69 ar src $@ @$(mktmp $(<:t"\n")\n)
72 -+del $(subst,/,\ $($(LIB_FILES)))
75 -+del dep.end libttf.a
77 # depend: $(SRC_S) $(SRC_M) $(SRC_X)
78 # $(CC) -E -M @$(mktmp $(<:t"\n")\n) > dep.end
80 # ifeq (dep.end,$(wildcard dep.end))