Werner Lemberg | bd547dc | 2000-09-22 21:23:29 +0000 | [diff] [blame] | 1 | # |
Werner Lemberg | 47a5f41 | 2000-10-17 03:38:43 +0000 | [diff] [blame] | 2 | # FreeType 2 OS/2 specific definitions |
David Turner | 046f7a0 | 2000-09-15 22:42:06 +0000 | [diff] [blame] | 3 | # |
Werner Lemberg | 47a5f41 | 2000-10-17 03:38:43 +0000 | [diff] [blame] | 4 | |
| 5 | |
| 6 | # Copyright 1996-2000 by |
| 7 | # David Turner, Robert Wilhelm, and Werner Lemberg. |
David Turner | 046f7a0 | 2000-09-15 22:42:06 +0000 | [diff] [blame] | 8 | # |
Werner Lemberg | 47a5f41 | 2000-10-17 03:38:43 +0000 | [diff] [blame] | 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 | |
David Turner | 046f7a0 | 2000-09-15 22:42:06 +0000 | [diff] [blame] | 15 | |
| 16 | DELETE := del |
| 17 | HOSTSEP := $(strip \ ) |
| 18 | BUILD := $(TOP)$(SEP)builds$(SEP)os2 |
| 19 | PLATFORM := os2 |
| 20 | |
| 21 | # except for GCC+emx on OS/2 |
| 22 | ifndef SEP |
Werner Lemberg | bd547dc | 2000-09-22 21:23:29 +0000 | [diff] [blame] | 23 | SEP := $(HOSTSEP) |
David Turner | 046f7a0 | 2000-09-15 22:42:06 +0000 | [diff] [blame] | 24 | endif |
| 25 | |
| 26 | |
| 27 | # The directory where all object files are placed. |
| 28 | # |
| 29 | # This lets you build the library in your own directory with something like |
| 30 | # |
| 31 | # set TOP=.../path/to/freetype2/top/dir... |
| 32 | # set OBJ_DIR=.../path/to/obj/dir |
| 33 | # make -f %TOP%/Makefile setup [options] |
| 34 | # make -f %TOP%/Makefile |
| 35 | # |
| 36 | ifndef OBJ_DIR |
| 37 | OBJ_DIR := $(TOP)$(SEP)obj |
| 38 | endif |
| 39 | |
| 40 | |
| 41 | # The directory where all library files are placed. |
| 42 | # |
Werner Lemberg | bd547dc | 2000-09-22 21:23:29 +0000 | [diff] [blame] | 43 | # By default, this is the same as $(OBJ_DIR); however, this can be changed |
David Turner | 046f7a0 | 2000-09-15 22:42:06 +0000 | [diff] [blame] | 44 | # to suit particular needs. |
| 45 | # |
| 46 | LIB_DIR := $(OBJ_DIR) |
| 47 | |
| 48 | # The name of the final library file. Note that the DOS-specific Makefile |
| 49 | # uses a shorter (8.3) name. |
| 50 | # |
| 51 | LIBRARY := $(PROJECT) |
| 52 | |
| 53 | |
Werner Lemberg | bd547dc | 2000-09-22 21:23:29 +0000 | [diff] [blame] | 54 | # The NO_OUTPUT macro is used to ignore the output of commands. |
Werner Lemberg | e4b32a5 | 2000-10-31 20:42:18 +0000 | [diff] [blame^] | 55 | # |
David Turner | 046f7a0 | 2000-09-15 22:42:06 +0000 | [diff] [blame] | 56 | NO_OUTPUT = 2> nul |
| 57 | |
| 58 | |
| 59 | ifdef BUILD_LIBRARY |
| 60 | |
| 61 | # Now include the main sub-makefile. It contains all the rules used to |
| 62 | # build the library with the previous variables defined. |
| 63 | # |
| 64 | include $(TOP)/builds/$(PROJECT).mk |
| 65 | |
| 66 | # The cleanup targets. |
| 67 | # |
| 68 | clean_project: clean_project_dos |
| 69 | distclean_project: distclean_project_dos |
| 70 | |
Werner Lemberg | e4b32a5 | 2000-10-31 20:42:18 +0000 | [diff] [blame^] | 71 | # This final rule is used to link all object files into a single library. |
David Turner | 046f7a0 | 2000-09-15 22:42:06 +0000 | [diff] [blame] | 72 | # It is part of the system-specific sub-Makefile because not all |
| 73 | # librarians accept a simple syntax like |
| 74 | # |
Werner Lemberg | e4b32a5 | 2000-10-31 20:42:18 +0000 | [diff] [blame^] | 75 | # librarian library_file {list of object files} |
David Turner | 046f7a0 | 2000-09-15 22:42:06 +0000 | [diff] [blame] | 76 | # |
| 77 | $(PROJECT_LIBRARY): $(OBJECTS_LIST) |
| 78 | -$(CLEAN_LIBRARY) $(NO_OUTPUT) |
| 79 | $(LINK_LIBRARY) |
| 80 | |
| 81 | endif |
| 82 | |
Werner Lemberg | bd547dc | 2000-09-22 21:23:29 +0000 | [diff] [blame] | 83 | # EOF |