Werner Lemberg | febe3fb | 2000-03-05 01:14:19 +0000 | [diff] [blame] | 1 | # |
| 2 | # FreeType 2 base layer configuration rules |
| 3 | # |
David Turner | d2b1f35 | 1999-12-16 23:11:37 +0000 | [diff] [blame] | 4 | |
| 5 | |
Werner Lemberg | 5993924 | 2006-01-31 20:17:42 +0000 | [diff] [blame] | 6 | # Copyright 1996-2000, 2002, 2003, 2004, 2005, 2006 by |
Werner Lemberg | febe3fb | 2000-03-05 01:14:19 +0000 | [diff] [blame] | 7 | # David Turner, Robert Wilhelm, and Werner Lemberg. |
| 8 | # |
Werner Lemberg | 4e6dd85 | 2000-06-05 05:26:15 +0000 | [diff] [blame] | 9 | # This file is part of the FreeType project, and may only be used, modified, |
Werner Lemberg | febe3fb | 2000-03-05 01:14:19 +0000 | [diff] [blame] | 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 | |
Werner Lemberg | e35cac6 | 2000-06-11 03:46:57 +0000 | [diff] [blame] | 16 | # It sets the following variables which are used by the master Makefile |
Werner Lemberg | febe3fb | 2000-03-05 01:14:19 +0000 | [diff] [blame] | 17 | # after the call: |
| 18 | # |
Werner Lemberg | e35cac6 | 2000-06-11 03:46:57 +0000 | [diff] [blame] | 19 | # BASE_OBJ_S: The single-object base layer. |
| 20 | # BASE_OBJ_M: A list of all objects for a multiple-objects build. |
| 21 | # BASE_EXT_OBJ: A list of base layer extensions, i.e., components found |
| 22 | # in `freetype/src/base' which are not compiled within the |
| 23 | # base layer proper. |
Werner Lemberg | febe3fb | 2000-03-05 01:14:19 +0000 | [diff] [blame] | 24 | # |
Werner Lemberg | e35cac6 | 2000-06-11 03:46:57 +0000 | [diff] [blame] | 25 | # BASE_H is defined in freetype.mk to simplify the dependency rules. |
| 26 | |
David Turner | d2b1f35 | 1999-12-16 23:11:37 +0000 | [diff] [blame] | 27 | |
Werner Lemberg | 858f310 | 2003-06-09 04:46:30 +0000 | [diff] [blame] | 28 | BASE_COMPILE := $(FT_COMPILE) $I$(subst /,$(COMPILER_SEP),$(SRC_DIR)/base) |
David Turner | d2b1f35 | 1999-12-16 23:11:37 +0000 | [diff] [blame] | 29 | |
Werner Lemberg | e35cac6 | 2000-06-11 03:46:57 +0000 | [diff] [blame] | 30 | |
David Turner | d2b1f35 | 1999-12-16 23:11:37 +0000 | [diff] [blame] | 31 | # Base layer sources |
| 32 | # |
Werner Lemberg | e35cac6 | 2000-06-11 03:46:57 +0000 | [diff] [blame] | 33 | # ftsystem, ftinit, and ftdebug are handled by freetype.mk |
David Turner | d2b1f35 | 1999-12-16 23:11:37 +0000 | [diff] [blame] | 34 | # |
Werner Lemberg | 7543533 | 2004-02-25 12:58:54 +0000 | [diff] [blame] | 35 | BASE_SRC := $(BASE_DIR)/ftapi.c \ |
| 36 | $(BASE_DIR)/ftcalc.c \ |
| 37 | $(BASE_DIR)/ftdbgmem.c \ |
Werner Lemberg | 858f310 | 2003-06-09 04:46:30 +0000 | [diff] [blame] | 38 | $(BASE_DIR)/ftgloadr.c \ |
Werner Lemberg | 858f310 | 2003-06-09 04:46:30 +0000 | [diff] [blame] | 39 | $(BASE_DIR)/ftnames.c \ |
Werner Lemberg | 7543533 | 2004-02-25 12:58:54 +0000 | [diff] [blame] | 40 | $(BASE_DIR)/ftobjs.c \ |
| 41 | $(BASE_DIR)/ftoutln.c \ |
| 42 | $(BASE_DIR)/ftrfork.c \ |
| 43 | $(BASE_DIR)/ftstream.c \ |
| 44 | $(BASE_DIR)/fttrigon.c \ |
| 45 | $(BASE_DIR)/ftutil.c |
David Turner | d2b1f35 | 1999-12-16 23:11:37 +0000 | [diff] [blame] | 46 | |
| 47 | # Base layer `extensions' sources |
| 48 | # |
Werner Lemberg | 5993924 | 2006-01-31 20:17:42 +0000 | [diff] [blame] | 49 | # An extension is added to the library file as a separate object. It is |
| 50 | # then linked to the final executable only if one of its symbols is used by |
| 51 | # the application. |
David Turner | d2b1f35 | 1999-12-16 23:11:37 +0000 | [diff] [blame] | 52 | # |
Werner Lemberg | 5993924 | 2006-01-31 20:17:42 +0000 | [diff] [blame] | 53 | BASE_EXT_SRC := $(patsubst %,$(BASE_DIR)/%,$(BASE_EXTENSIONS)) |
David Turner | d2b1f35 | 1999-12-16 23:11:37 +0000 | [diff] [blame] | 54 | |
Werner Lemberg | 91e52d4 | 2000-06-02 14:30:38 +0000 | [diff] [blame] | 55 | # Default extensions objects |
| 56 | # |
Werner Lemberg | 858f310 | 2003-06-09 04:46:30 +0000 | [diff] [blame] | 57 | BASE_EXT_OBJ := $(BASE_EXT_SRC:$(BASE_DIR)/%.c=$(OBJ_DIR)/%.$O) |
Werner Lemberg | 91e52d4 | 2000-06-02 14:30:38 +0000 | [diff] [blame] | 58 | |
David Turner | d2b1f35 | 1999-12-16 23:11:37 +0000 | [diff] [blame] | 59 | |
| 60 | # Base layer object(s) |
| 61 | # |
Werner Lemberg | febe3fb | 2000-03-05 01:14:19 +0000 | [diff] [blame] | 62 | # BASE_OBJ_M is used during `multi' builds (each base source file compiles |
| 63 | # to a single object file). |
David Turner | d2b1f35 | 1999-12-16 23:11:37 +0000 | [diff] [blame] | 64 | # |
Werner Lemberg | febe3fb | 2000-03-05 01:14:19 +0000 | [diff] [blame] | 65 | # BASE_OBJ_S is used during `single' builds (the whole base layer is |
| 66 | # compiled as a single object file using ftbase.c). |
David Turner | d2b1f35 | 1999-12-16 23:11:37 +0000 | [diff] [blame] | 67 | # |
Werner Lemberg | 858f310 | 2003-06-09 04:46:30 +0000 | [diff] [blame] | 68 | BASE_OBJ_M := $(BASE_SRC:$(BASE_DIR)/%.c=$(OBJ_DIR)/%.$O) |
| 69 | BASE_OBJ_S := $(OBJ_DIR)/ftbase.$O |
David Turner | d2b1f35 | 1999-12-16 23:11:37 +0000 | [diff] [blame] | 70 | |
Werner Lemberg | e35cac6 | 2000-06-11 03:46:57 +0000 | [diff] [blame] | 71 | # Base layer root source file for single build |
David Turner | d2b1f35 | 1999-12-16 23:11:37 +0000 | [diff] [blame] | 72 | # |
Werner Lemberg | 858f310 | 2003-06-09 04:46:30 +0000 | [diff] [blame] | 73 | BASE_SRC_S := $(BASE_DIR)/ftbase.c |
David Turner | d2b1f35 | 1999-12-16 23:11:37 +0000 | [diff] [blame] | 74 | |
| 75 | |
David Turner | d2b1f35 | 1999-12-16 23:11:37 +0000 | [diff] [blame] | 76 | # Base layer - single object build |
| 77 | # |
Werner Lemberg | e35cac6 | 2000-06-11 03:46:57 +0000 | [diff] [blame] | 78 | $(BASE_OBJ_S): $(BASE_SRC_S) $(BASE_SRC) $(FREETYPE_H) |
Werner Lemberg | 858f310 | 2003-06-09 04:46:30 +0000 | [diff] [blame] | 79 | $(BASE_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(BASE_SRC_S)) |
David Turner | d2b1f35 | 1999-12-16 23:11:37 +0000 | [diff] [blame] | 80 | |
Werner Lemberg | e35cac6 | 2000-06-11 03:46:57 +0000 | [diff] [blame] | 81 | |
| 82 | # Multiple objects build + extensions |
| 83 | # |
Werner Lemberg | 858f310 | 2003-06-09 04:46:30 +0000 | [diff] [blame] | 84 | $(OBJ_DIR)/%.$O: $(BASE_DIR)/%.c $(FREETYPE_H) |
| 85 | $(BASE_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<) |
| 86 | |
Werner Lemberg | e35cac6 | 2000-06-11 03:46:57 +0000 | [diff] [blame] | 87 | |
Werner Lemberg | febe3fb | 2000-03-05 01:14:19 +0000 | [diff] [blame] | 88 | # EOF |