2 # FreeType 2 template for Unix-specific compiler definitions
5 # Copyright 1996-2000, 2002, 2003, 2005, 2006 by
6 # David Turner, Robert Wilhelm, and Werner Lemberg.
8 # This file is part of the FreeType project, and may only be used, modified,
9 # and distributed under the terms of the FreeType project license,
10 # LICENSE.TXT. By continuing to use, modify, or distribute this file you
11 # indicate that you have read the license and understand and accept it
16 COMPILER_SEP := $(SEP)
18 LIBTOOL ?= $(BUILD_DIR)/libtool
21 # The object file extension (for standard and static libraries). This can be
22 # .o, .tco, .obj, etc., depending on the platform.
28 # The executable file extension. Although most Unix platforms use no
29 # extension, we copy the extension detected by autoconf. Useful for cross
30 # building on Unix systems for non-Unix systems.
35 # The library file extension (for standard and static libraries). This can
36 # be .a, .lib, etc., depending on the platform.
42 # The name of the final library file. Note that the DOS-specific Makefile
43 # uses a shorter (8.3) name.
45 LIBRARY := lib$(PROJECT)
48 # Path inclusion flag. Some compilers use a different flag than `-I' to
49 # specify an additional include path. Examples are `/i=' or `-J'.
54 # C flag used to define a macro before the compilation of a given source
55 # object. Usually it is `-D' like in `-DDEBUG'.
60 # The link flag used to specify a given library file on link. Note that
61 # this is only used to compile the demo programs, not the library itself.
73 # These should concern: debug output, optimization & warnings.
75 # Use the ANSIFLAGS variable to define the compiler flags used to enfore
78 # We use our own FreeType configuration file.
80 CPPFLAGS := @CPPFLAGS@
81 CFLAGS := -c @XX_CFLAGS@ @CFLAGS@ -DFT_CONFIG_CONFIG_H="<ftconfig.h>"
83 # ANSIFLAGS: Put there the flags used to make your compiler ANSI-compliant.
85 ANSIFLAGS := @XX_ANSIFLAGS@
87 # C compiler to use -- we use libtool!
91 CC := $(LIBTOOL) --mode=compile $(CCraw)
100 CCraw_build := @CC_BUILD@ # native CC of building system
101 E_BUILD := @EXEEXT_BUILD@ # extension for exexutable on building system
102 EXPORTS_LIST := $(OBJ_DIR)/ftexport.sym
103 CCexe := $(CCraw_build) # used to compile `apinames' only
108 LINK_LIBRARY = $(LIBTOOL) --mode=link $(CCraw) -o $@ $(OBJECTS_LIST) \
109 -rpath $(libdir) -version-info $(version_info) \
110 $(LDFLAGS) -no-undefined \
111 # -export-symbols $(EXPORTS_LIST)