David Turner | 4f99c3c | 2000-05-29 20:55:13 +0000 | [diff] [blame] | 1 | # |
| 2 | # FreeType 2 OpenType/CFF driver configuration rules |
| 3 | # |
| 4 | |
| 5 | |
Werner Lemberg | 858f310 | 2003-06-09 04:46:30 +0000 | [diff] [blame] | 6 | # Copyright 1996-2000, 2001, 2003 by |
David Turner | 4f99c3c | 2000-05-29 20:55:13 +0000 | [diff] [blame] | 7 | # David Turner, Robert Wilhelm, and Werner Lemberg. |
| 8 | # |
Werner Lemberg | e35cac6 | 2000-06-11 03:46:57 +0000 | [diff] [blame] | 9 | # This file is part of the FreeType project, and may only be used, modified, |
David Turner | 4f99c3c | 2000-05-29 20:55:13 +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 | |
David Turner | 4f99c3c | 2000-05-29 20:55:13 +0000 | [diff] [blame] | 16 | # OpenType driver directory |
| 17 | # |
Werner Lemberg | 858f310 | 2003-06-09 04:46:30 +0000 | [diff] [blame] | 18 | CFF_DIR := $(SRC_DIR)/cff |
David Turner | 4f99c3c | 2000-05-29 20:55:13 +0000 | [diff] [blame] | 19 | |
| 20 | |
Werner Lemberg | 858f310 | 2003-06-09 04:46:30 +0000 | [diff] [blame] | 21 | CFF_COMPILE := $(FT_COMPILE) $I$(subst /,$(COMPILER_SEP),$(CFF_DIR)) |
David Turner | 4f99c3c | 2000-05-29 20:55:13 +0000 | [diff] [blame] | 22 | |
| 23 | |
David Turner | 19ed8af | 2000-12-08 02:42:29 +0000 | [diff] [blame] | 24 | # CFF driver sources (i.e., C files) |
David Turner | 4f99c3c | 2000-05-29 20:55:13 +0000 | [diff] [blame] | 25 | # |
Werner Lemberg | 858f310 | 2003-06-09 04:46:30 +0000 | [diff] [blame] | 26 | CFF_DRV_SRC := $(CFF_DIR)/cffobjs.c \ |
| 27 | $(CFF_DIR)/cffload.c \ |
| 28 | $(CFF_DIR)/cffgload.c \ |
| 29 | $(CFF_DIR)/cffparse.c \ |
| 30 | $(CFF_DIR)/cffcmap.c \ |
| 31 | $(CFF_DIR)/cffdrivr.c |
David Turner | 4f99c3c | 2000-05-29 20:55:13 +0000 | [diff] [blame] | 32 | |
David Turner | 19ed8af | 2000-12-08 02:42:29 +0000 | [diff] [blame] | 33 | # CFF driver headers |
David Turner | 4f99c3c | 2000-05-29 20:55:13 +0000 | [diff] [blame] | 34 | # |
David Turner | 19ed8af | 2000-12-08 02:42:29 +0000 | [diff] [blame] | 35 | CFF_DRV_H := $(CFF_DRV_SRC:%.c=%.h) \ |
Werner Lemberg | 858f310 | 2003-06-09 04:46:30 +0000 | [diff] [blame] | 36 | $(CFF_DIR)/cfftoken.h \ |
Werner Lemberg | a9cd856 | 2003-12-18 08:18:37 +0000 | [diff] [blame] | 37 | $(CFF_DIR)/cfftypes.h \ |
Werner Lemberg | 858f310 | 2003-06-09 04:46:30 +0000 | [diff] [blame] | 38 | $(CFF_DIR)/cfferrs.h |
David Turner | 4f99c3c | 2000-05-29 20:55:13 +0000 | [diff] [blame] | 39 | |
| 40 | |
David Turner | 19ed8af | 2000-12-08 02:42:29 +0000 | [diff] [blame] | 41 | # CFF driver object(s) |
David Turner | 4f99c3c | 2000-05-29 20:55:13 +0000 | [diff] [blame] | 42 | # |
David Turner | 19ed8af | 2000-12-08 02:42:29 +0000 | [diff] [blame] | 43 | # CFF_DRV_OBJ_M is used during `multi' builds |
| 44 | # CFF_DRV_OBJ_S is used during `single' builds |
David Turner | 4f99c3c | 2000-05-29 20:55:13 +0000 | [diff] [blame] | 45 | # |
Werner Lemberg | 858f310 | 2003-06-09 04:46:30 +0000 | [diff] [blame] | 46 | CFF_DRV_OBJ_M := $(CFF_DRV_SRC:$(CFF_DIR)/%.c=$(OBJ_DIR)/%.$O) |
| 47 | CFF_DRV_OBJ_S := $(OBJ_DIR)/cff.$O |
David Turner | 4f99c3c | 2000-05-29 20:55:13 +0000 | [diff] [blame] | 48 | |
Tom Kacvinsky | ceac7b9 | 2001-01-03 00:16:24 +0000 | [diff] [blame] | 49 | # CFF driver source file for single build |
David Turner | 4f99c3c | 2000-05-29 20:55:13 +0000 | [diff] [blame] | 50 | # |
Werner Lemberg | 858f310 | 2003-06-09 04:46:30 +0000 | [diff] [blame] | 51 | CFF_DRV_SRC_S := $(CFF_DIR)/cff.c |
David Turner | 4f99c3c | 2000-05-29 20:55:13 +0000 | [diff] [blame] | 52 | |
| 53 | |
Tom Kacvinsky | ceac7b9 | 2001-01-03 00:16:24 +0000 | [diff] [blame] | 54 | # CFF driver - single object |
David Turner | 4f99c3c | 2000-05-29 20:55:13 +0000 | [diff] [blame] | 55 | # |
David Turner | 19ed8af | 2000-12-08 02:42:29 +0000 | [diff] [blame] | 56 | $(CFF_DRV_OBJ_S): $(CFF_DRV_SRC_S) $(CFF_DRV_SRC) $(FREETYPE_H) $(CFF_DRV_H) |
Werner Lemberg | 858f310 | 2003-06-09 04:46:30 +0000 | [diff] [blame] | 57 | $(CFF_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(CFF_DRV_SRC_S)) |
David Turner | 4f99c3c | 2000-05-29 20:55:13 +0000 | [diff] [blame] | 58 | |
| 59 | |
Tom Kacvinsky | ceac7b9 | 2001-01-03 00:16:24 +0000 | [diff] [blame] | 60 | # CFF driver - multiple objects |
David Turner | 4f99c3c | 2000-05-29 20:55:13 +0000 | [diff] [blame] | 61 | # |
Werner Lemberg | 858f310 | 2003-06-09 04:46:30 +0000 | [diff] [blame] | 62 | $(OBJ_DIR)/%.$O: $(CFF_DIR)/%.c $(FREETYPE_H) $(CFF_DRV_H) |
| 63 | $(CFF_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<) |
David Turner | 4f99c3c | 2000-05-29 20:55:13 +0000 | [diff] [blame] | 64 | |
| 65 | |
| 66 | # update main driver object lists |
| 67 | # |
David Turner | 19ed8af | 2000-12-08 02:42:29 +0000 | [diff] [blame] | 68 | DRV_OBJS_S += $(CFF_DRV_OBJ_S) |
| 69 | DRV_OBJS_M += $(CFF_DRV_OBJ_M) |
David Turner | 4f99c3c | 2000-05-29 20:55:13 +0000 | [diff] [blame] | 70 | |
Werner Lemberg | 858f310 | 2003-06-09 04:46:30 +0000 | [diff] [blame] | 71 | |
David Turner | 4f99c3c | 2000-05-29 20:55:13 +0000 | [diff] [blame] | 72 | # EOF |