misc/libfreetype/builds/unix/unix-cc.in
author koda
Wed, 21 Sep 2011 23:15:44 +0200
changeset 5983 f0925204f50e
parent 5172 88f2e05288ba
permissions -rw-r--r--
retina images, again
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5172
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     1
#
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     2
# FreeType 2 template for Unix-specific compiler definitions
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     3
#
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     4
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     5
# Copyright 1996-2000, 2002, 2003, 2005, 2006 by
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     6
# David Turner, Robert Wilhelm, and Werner Lemberg.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     7
#
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     8
# This file is part of the FreeType project, and may only be used, modified,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     9
# and distributed under the terms of the FreeType project license,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    10
# LICENSE.TXT.  By continuing to use, modify, or distribute this file you
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    11
# indicate that you have read the license and understand and accept it
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    12
# fully.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    13
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    14
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    15
CC           := @CC@
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    16
COMPILER_SEP := $(SEP)
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    17
FT_LIBTOOL_DIR ?= $(BUILD_DIR)
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    18
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    19
LIBTOOL := $(FT_LIBTOOL_DIR)/libtool
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    20
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    21
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    22
# The object file extension (for standard and static libraries).  This can be
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    23
# .o, .tco, .obj, etc., depending on the platform.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    24
#
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    25
O  := lo
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    26
SO := o
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    27
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    28
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    29
# The executable file extension.  Although most Unix platforms use no
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    30
# extension, we copy the extension detected by autoconf.  Useful for cross
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    31
# building on Unix systems for non-Unix systems.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    32
#
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    33
E := @EXEEXT@
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    34
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    35
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    36
# The library file extension (for standard and static libraries).  This can
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    37
# be .a, .lib, etc., depending on the platform.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    38
#
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    39
A  := la
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    40
SA := a
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    41
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    42
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    43
# The name of the final library file.  Note that the DOS-specific Makefile
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    44
# uses a shorter (8.3) name.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    45
#
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    46
LIBRARY := lib$(PROJECT)
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    47
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    48
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    49
# Path inclusion flag.  Some compilers use a different flag than `-I' to
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    50
# specify an additional include path.  Examples are `/i=' or `-J'.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    51
#
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    52
I := -I
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    53
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    54
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    55
# C flag used to define a macro before the compilation of a given source
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    56
# object.  Usually it is `-D' like in `-DDEBUG'.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    57
#
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    58
D := -D
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    59
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    60
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    61
# The link flag used to specify a given library file on link.  Note that
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    62
# this is only used to compile the demo programs, not the library itself.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    63
#
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    64
L := -l
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    65
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    66
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    67
# Target flag.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    68
#
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    69
T := -o$(space)
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    70
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    71
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    72
# C flags
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    73
#
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    74
#   These should concern: debug output, optimization & warnings.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    75
#
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    76
#   Use the ANSIFLAGS variable to define the compiler flags used to enfore
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    77
#   ANSI compliance.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    78
#
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    79
#   We use our own FreeType configuration file.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    80
#
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    81
CPPFLAGS := @CPPFLAGS@
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    82
CFLAGS   := -c @XX_CFLAGS@ @CFLAGS@ -DFT_CONFIG_CONFIG_H="<ftconfig.h>"
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    83
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    84
# ANSIFLAGS: Put there the flags used to make your compiler ANSI-compliant.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    85
#
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    86
ANSIFLAGS := @XX_ANSIFLAGS@
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    87
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    88
# C compiler to use -- we use libtool!
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    89
#
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    90
#
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    91
CCraw := $(CC)
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    92
CC    := $(LIBTOOL) --mode=compile $(CCraw)
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    93
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    94
# Linker flags.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    95
#
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    96
LDFLAGS := @LDFLAGS@
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    97
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    98
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    99
# export symbols
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   100
#
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   101
CCraw_build  := @CC_BUILD@	# native CC of building system
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   102
E_BUILD      := @EXEEXT_BUILD@	# extension for exexutable on building system
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   103
EXPORTS_LIST := $(OBJ_DIR)/ftexport.sym
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   104
CCexe        := $(CCraw_build)	# used to compile `apinames' only
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   105
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   106
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   107
# Library linking
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   108
#
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   109
LINK_LIBRARY = $(LIBTOOL) --mode=link $(CCraw) -o $@ $(OBJECTS_LIST) \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   110
                          -rpath $(libdir) -version-info $(version_info) \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   111
                          $(LDFLAGS) -no-undefined \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   112
                          # -export-symbols $(EXPORTS_LIST)
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   113
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   114
# EOF