source: trunk/poppler/freetype-2.1.10/src/sfnt/rules.mk @ 2

Last change on this file since 2 was 2, checked in by Eugene Romanenko, 15 years ago

First import

File size: 1.8 KB
Line 
1#
2# FreeType 2 SFNT driver configuration rules
3#
4
5
6# Copyright 1996-2000, 2002, 2003, 2004, 2005 by
7# David Turner, Robert Wilhelm, and Werner Lemberg.
8#
9# This file is part of the FreeType project, and may only be used, modified,
10# and distributed under the terms of the FreeType project license,
11# LICENSE.TXT.  By continuing to use, modify, or distribute this file you
12# indicate that you have read the license and understand and accept it
13# fully.
14
15
16# SFNT driver directory
17#
18SFNT_DIR := $(SRC_DIR)/sfnt
19
20
21# compilation flags for the driver
22#
23SFNT_COMPILE := $(FT_COMPILE) $I$(subst /,$(COMPILER_SEP),$(SFNT_DIR))
24
25
26# SFNT driver sources (i.e., C files)
27#
28SFNT_DRV_SRC := $(SFNT_DIR)/ttload.c   \
29                $(SFNT_DIR)/ttcmap.c   \
30                $(SFNT_DIR)/ttsbit.c   \
31                $(SFNT_DIR)/ttpost.c   \
32                $(SFNT_DIR)/ttkern.c   \
33                $(SFNT_DIR)/sfobjs.c   \
34                $(SFNT_DIR)/sfdriver.c
35
36# SFNT driver headers
37#
38SFNT_DRV_H := $(SFNT_DRV_SRC:%c=%h) \
39              $(SFNT_DIR)/sferrors.h
40
41
42# SFNT driver object(s)
43#
44#   SFNT_DRV_OBJ_M is used during `multi' builds.
45#   SFNT_DRV_OBJ_S is used during `single' builds.
46#
47SFNT_DRV_OBJ_M := $(SFNT_DRV_SRC:$(SFNT_DIR)/%.c=$(OBJ_DIR)/%.$O)
48SFNT_DRV_OBJ_S := $(OBJ_DIR)/sfnt.$O
49
50# SFNT driver source file for single build
51#
52SFNT_DRV_SRC_S := $(SFNT_DIR)/sfnt.c
53
54
55# SFNT driver - single object
56#
57$(SFNT_DRV_OBJ_S): $(SFNT_DRV_SRC_S) $(SFNT_DRV_SRC) \
58                   $(FREETYPE_H) $(SFNT_DRV_H)
59        $(SFNT_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(SFNT_DRV_SRC_S))
60
61
62# SFNT driver - multiple objects
63#
64$(OBJ_DIR)/%.$O: $(SFNT_DIR)/%.c $(FREETYPE_H) $(SFNT_DRV_H)
65        $(SFNT_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
66
67
68# update main driver object lists
69#
70DRV_OBJS_S += $(SFNT_DRV_OBJ_S)
71DRV_OBJS_M += $(SFNT_DRV_OBJ_M)
72
73
74# EOF
Note: See TracBrowser for help on using the repository browser.