David Turner | 609e28c | 2002-04-19 15:13:47 +0000 | [diff] [blame] | 1 | # |
| 2 | # FreeType 2 PFR driver configuration rules |
| 3 | # |
| 4 | |
| 5 | |
Werner Lemberg | 858f310 | 2003-06-09 04:46:30 +0000 | [diff] [blame] | 6 | # Copyright 2002, 2003 by |
David Turner | 609e28c | 2002-04-19 15:13:47 +0000 | [diff] [blame] | 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 | |
Werner Lemberg | b658ac9 | 2002-04-28 10:25:55 +0000 | [diff] [blame] | 16 | # pfr driver directory |
David Turner | 609e28c | 2002-04-19 15:13:47 +0000 | [diff] [blame] | 17 | # |
Werner Lemberg | 858f310 | 2003-06-09 04:46:30 +0000 | [diff] [blame] | 18 | PFR_DIR := $(SRC_DIR)/pfr |
David Turner | 609e28c | 2002-04-19 15:13:47 +0000 | [diff] [blame] | 19 | |
| 20 | |
| 21 | # compilation flags for the driver |
| 22 | # |
Werner Lemberg | 858f310 | 2003-06-09 04:46:30 +0000 | [diff] [blame] | 23 | PFR_COMPILE := $(FT_COMPILE) $I$(subst /,$(COMPILER_SEP),$(PFR_DIR)) |
David Turner | 609e28c | 2002-04-19 15:13:47 +0000 | [diff] [blame] | 24 | |
| 25 | |
Werner Lemberg | b658ac9 | 2002-04-28 10:25:55 +0000 | [diff] [blame] | 26 | # pfr driver sources (i.e., C files) |
David Turner | 609e28c | 2002-04-19 15:13:47 +0000 | [diff] [blame] | 27 | # |
Werner Lemberg | 858f310 | 2003-06-09 04:46:30 +0000 | [diff] [blame] | 28 | PFR_DRV_SRC := $(PFR_DIR)/pfrload.c \ |
| 29 | $(PFR_DIR)/pfrgload.c \ |
| 30 | $(PFR_DIR)/pfrcmap.c \ |
| 31 | $(PFR_DIR)/pfrdrivr.c \ |
Werner Lemberg | 0240d29 | 2003-06-09 15:54:18 +0000 | [diff] [blame] | 32 | $(PFR_DIR)/pfrsbit.c \ |
Werner Lemberg | 858f310 | 2003-06-09 04:46:30 +0000 | [diff] [blame] | 33 | $(PFR_DIR)/pfrobjs.c |
David Turner | 609e28c | 2002-04-19 15:13:47 +0000 | [diff] [blame] | 34 | |
Werner Lemberg | b658ac9 | 2002-04-28 10:25:55 +0000 | [diff] [blame] | 35 | # pfr driver headers |
David Turner | 609e28c | 2002-04-19 15:13:47 +0000 | [diff] [blame] | 36 | # |
Werner Lemberg | b658ac9 | 2002-04-28 10:25:55 +0000 | [diff] [blame] | 37 | PFR_DRV_H := $(PFR_DRV_SRC:%.c=%.h) \ |
Werner Lemberg | 0240d29 | 2003-06-09 15:54:18 +0000 | [diff] [blame] | 38 | $(PFR_DIR)/pfrerror.h \ |
| 39 | $(PFR_DIR)/pfrtypes.h |
David Turner | 609e28c | 2002-04-19 15:13:47 +0000 | [diff] [blame] | 40 | |
| 41 | |
| 42 | # Pfr driver object(s) |
| 43 | # |
| 44 | # PFR_DRV_OBJ_M is used during `multi' builds |
| 45 | # PFR_DRV_OBJ_S is used during `single' builds |
| 46 | # |
Werner Lemberg | 858f310 | 2003-06-09 04:46:30 +0000 | [diff] [blame] | 47 | PFR_DRV_OBJ_M := $(PFR_DRV_SRC:$(PFR_DIR)/%.c=$(OBJ_DIR)/%.$O) |
| 48 | PFR_DRV_OBJ_S := $(OBJ_DIR)/pfr.$O |
David Turner | 609e28c | 2002-04-19 15:13:47 +0000 | [diff] [blame] | 49 | |
Werner Lemberg | b658ac9 | 2002-04-28 10:25:55 +0000 | [diff] [blame] | 50 | # pfr driver source file for single build |
David Turner | 609e28c | 2002-04-19 15:13:47 +0000 | [diff] [blame] | 51 | # |
Werner Lemberg | 858f310 | 2003-06-09 04:46:30 +0000 | [diff] [blame] | 52 | PFR_DRV_SRC_S := $(PFR_DIR)/pfr.c |
David Turner | 609e28c | 2002-04-19 15:13:47 +0000 | [diff] [blame] | 53 | |
| 54 | |
Werner Lemberg | b658ac9 | 2002-04-28 10:25:55 +0000 | [diff] [blame] | 55 | # pfr driver - single object |
David Turner | 609e28c | 2002-04-19 15:13:47 +0000 | [diff] [blame] | 56 | # |
| 57 | $(PFR_DRV_OBJ_S): $(PFR_DRV_SRC_S) $(PFR_DRV_SRC) $(FREETYPE_H) $(PFR_DRV_H) |
Werner Lemberg | 858f310 | 2003-06-09 04:46:30 +0000 | [diff] [blame] | 58 | $(PFR_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(PFR_DRV_SRC_S)) |
David Turner | 609e28c | 2002-04-19 15:13:47 +0000 | [diff] [blame] | 59 | |
| 60 | |
Werner Lemberg | b658ac9 | 2002-04-28 10:25:55 +0000 | [diff] [blame] | 61 | # pfr driver - multiple objects |
David Turner | 609e28c | 2002-04-19 15:13:47 +0000 | [diff] [blame] | 62 | # |
Werner Lemberg | 858f310 | 2003-06-09 04:46:30 +0000 | [diff] [blame] | 63 | $(OBJ_DIR)/%.$O: $(PFR_DIR)/%.c $(FREETYPE_H) $(PFR_DRV_H) |
| 64 | $(PFR_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<) |
David Turner | 609e28c | 2002-04-19 15:13:47 +0000 | [diff] [blame] | 65 | |
| 66 | |
| 67 | # update main driver object lists |
| 68 | # |
| 69 | DRV_OBJS_S += $(PFR_DRV_OBJ_S) |
| 70 | DRV_OBJS_M += $(PFR_DRV_OBJ_M) |
| 71 | |
Werner Lemberg | 858f310 | 2003-06-09 04:46:30 +0000 | [diff] [blame] | 72 | |
David Turner | 609e28c | 2002-04-19 15:13:47 +0000 | [diff] [blame] | 73 | # EOF |