contrib/OWB: add correct SDL dependency, fix compilers used
[AROS-Contrib.git] / freetype1 / lib / arch / debugger / Makefile
blob6da004b8526fa8e266aa4ff914390517e676f8df
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
12 ARCH = arch/debugger
13 FT_MAKEFILE = $(ARCH)/Makefile
15 CC = gcc
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
25 ifdef OS2_SHELL
26 OS := OS2
27 RM := del
28 else
29 OS := UNIX # Unix build otherwise
30 RM := rm -f
31 endif
33 TTFILE = ./ttfile.c
34 TTMEMORY = ./ttmemory.c
35 TTMUTEX = ./ttmutex.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 \
42 extend/ftxgdef.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
59 %.o: %.c
60 $(CC) $(CFLAGS) -c -o $@ $< -D$(OS)
62 .PHONY: all debug clean distclean depend
65 all:
66 $(MAKE) -f $(FT_MAKEFILE) LIB_FILES=OBJS_S $(LIBTTF_A)
68 debug:
69 $(MAKE) -f $(FT_MAKEFILE) LIB_FILES=OBJS_M $(LIBTTF_A)
71 $(OBJ_S): $(SRC_S) $(SRC_M)
73 $(LIBTTF_A): $($(LIB_FILES))
74 -$(RM) $@
75 ar src $@ $^
77 clean:
78 ifdef OS2_SHELL
79 -$(RM) $(subst /,\,$(LIBTTF_A))
80 -$(RM) $(subst /,\,$(OBJS_S))
81 else
82 -$(RM) $(LIBTTF_A)
83 -$(RM) $(OBJS_S)
84 endif
86 distclean: clean
87 -$(RM) dep.end
89 depend: $(SRC_S) $(SRC_M) $(SRC_X)
90 $(CC) $(CFLAGS) -E -M $^ > dep.end
92 ifeq (dep.end,$(wildcard dep.end))
93 include dep.end
94 endif
96 # end of Makefile