Werner Lemberg | febe3fb | 2000-03-05 01:14:19 +0000 | [diff] [blame] | 1 | # |
| 2 | # FreeType 2 PSNames 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 |
Werner Lemberg | febe3fb | 2000-03-05 01:14:19 +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, |
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. |
David Turner | 5c9a571 | 2000-02-10 13:10:32 +0000 | [diff] [blame] | 14 | |
| 15 | |
Werner Lemberg | e35cac6 | 2000-06-11 03:46:57 +0000 | [diff] [blame] | 16 | # PSNames driver directory |
| 17 | # |
Werner Lemberg | 858f310 | 2003-06-09 04:46:30 +0000 | [diff] [blame] | 18 | PSNAMES_DIR := $(SRC_DIR)/psnames |
David Turner | 5c9a571 | 2000-02-10 13:10:32 +0000 | [diff] [blame] | 19 | |
David Turner | 5c9a571 | 2000-02-10 13:10:32 +0000 | [diff] [blame] | 20 | |
Werner Lemberg | e35cac6 | 2000-06-11 03:46:57 +0000 | [diff] [blame] | 21 | # compilation flags for the driver |
| 22 | # |
Werner Lemberg | 858f310 | 2003-06-09 04:46:30 +0000 | [diff] [blame] | 23 | PSNAMES_COMPILE := $(FT_COMPILE) $I$(subst /,$(COMPILER_SEP),$(PSNAMES_DIR)) |
David Turner | 5c9a571 | 2000-02-10 13:10:32 +0000 | [diff] [blame] | 24 | |
| 25 | |
Werner Lemberg | e35cac6 | 2000-06-11 03:46:57 +0000 | [diff] [blame] | 26 | # PSNames driver sources (i.e., C files) |
| 27 | # |
Werner Lemberg | 858f310 | 2003-06-09 04:46:30 +0000 | [diff] [blame] | 28 | PSNAMES_DRV_SRC := $(PSNAMES_DIR)/psmodule.c |
David Turner | 5c9a571 | 2000-02-10 13:10:32 +0000 | [diff] [blame] | 29 | |
| 30 | |
Werner Lemberg | e35cac6 | 2000-06-11 03:46:57 +0000 | [diff] [blame] | 31 | # PSNames driver headers |
| 32 | # |
| 33 | PSNAMES_DRV_H := $(PSNAMES_DRV_SRC:%.c=%.h) \ |
Werner Lemberg | 858f310 | 2003-06-09 04:46:30 +0000 | [diff] [blame] | 34 | $(PSNAMES_DIR)/pstables.h \ |
| 35 | $(PSNAMES_DIR)/psnamerr.h |
David Turner | 5c9a571 | 2000-02-10 13:10:32 +0000 | [diff] [blame] | 36 | |
| 37 | |
Werner Lemberg | e35cac6 | 2000-06-11 03:46:57 +0000 | [diff] [blame] | 38 | # PSNames driver object(s) |
| 39 | # |
| 40 | # PSNAMES_DRV_OBJ_M is used during `multi' builds |
| 41 | # PSNAMES_DRV_OBJ_S is used during `single' builds |
| 42 | # |
Werner Lemberg | 858f310 | 2003-06-09 04:46:30 +0000 | [diff] [blame] | 43 | PSNAMES_DRV_OBJ_M := $(PSNAMES_DRV_SRC:$(PSNAMES_DIR)/%.c=$(OBJ_DIR)/%.$O) |
| 44 | PSNAMES_DRV_OBJ_S := $(OBJ_DIR)/psnames.$O |
Werner Lemberg | e35cac6 | 2000-06-11 03:46:57 +0000 | [diff] [blame] | 45 | |
| 46 | # PSNames driver source file for single build |
| 47 | # |
Werner Lemberg | 858f310 | 2003-06-09 04:46:30 +0000 | [diff] [blame] | 48 | PSNAMES_DRV_SRC_S := $(PSNAMES_DIR)/psmodule.c |
David Turner | 5c9a571 | 2000-02-10 13:10:32 +0000 | [diff] [blame] | 49 | |
| 50 | |
Werner Lemberg | e35cac6 | 2000-06-11 03:46:57 +0000 | [diff] [blame] | 51 | # PSNames driver - single object |
| 52 | # |
| 53 | $(PSNAMES_DRV_OBJ_S): $(PSNAMES_DRV_SRC_S) $(PSNAMES_DRV_SRC) \ |
| 54 | $(FREETYPE_H) $(PSNAMES_DRV_H) |
Werner Lemberg | 858f310 | 2003-06-09 04:46:30 +0000 | [diff] [blame] | 55 | $(PSNAMES_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(PSNAMES_DRV_SRC_S)) |
David Turner | 5c9a571 | 2000-02-10 13:10:32 +0000 | [diff] [blame] | 56 | |
| 57 | |
Werner Lemberg | e35cac6 | 2000-06-11 03:46:57 +0000 | [diff] [blame] | 58 | # PSNames driver - multiple objects |
| 59 | # |
Werner Lemberg | 858f310 | 2003-06-09 04:46:30 +0000 | [diff] [blame] | 60 | $(OBJ_DIR)/%.$O: $(PSNAMES_DIR)/%.c $(FREETYPE_H) $(PSNAMES_DRV_H) |
| 61 | $(PSNAMES_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<) |
David Turner | 5c9a571 | 2000-02-10 13:10:32 +0000 | [diff] [blame] | 62 | |
| 63 | |
Werner Lemberg | e35cac6 | 2000-06-11 03:46:57 +0000 | [diff] [blame] | 64 | # update main driver object lists |
| 65 | # |
| 66 | DRV_OBJS_S += $(PSNAMES_DRV_OBJ_S) |
| 67 | DRV_OBJS_M += $(PSNAMES_DRV_OBJ_M) |
David Turner | 5c9a571 | 2000-02-10 13:10:32 +0000 | [diff] [blame] | 68 | |
David Turner | 5c9a571 | 2000-02-10 13:10:32 +0000 | [diff] [blame] | 69 | |
Werner Lemberg | febe3fb | 2000-03-05 01:14:19 +0000 | [diff] [blame] | 70 | # EOF |