blob: 42f505dbdb156f4bf0f40e43bd96fb010132ad21 [file] [log] [blame]
Werner Lembergbd547dc2000-09-22 21:23:29 +00001#
Werner Lemberg47a5f412000-10-17 03:38:43 +00002# FreeType 2 OS/2 specific definitions
David Turner046f7a02000-09-15 22:42:06 +00003#
Werner Lemberg47a5f412000-10-17 03:38:43 +00004
5
6# Copyright 1996-2000 by
7# David Turner, Robert Wilhelm, and Werner Lemberg.
David Turner046f7a02000-09-15 22:42:06 +00008#
Werner Lemberg47a5f412000-10-17 03:38:43 +00009# 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 Turner046f7a02000-09-15 22:42:06 +000015
16DELETE := del
17HOSTSEP := $(strip \ )
18BUILD := $(TOP)$(SEP)builds$(SEP)os2
19PLATFORM := os2
20
21# except for GCC+emx on OS/2
22ifndef SEP
Werner Lembergbd547dc2000-09-22 21:23:29 +000023 SEP := $(HOSTSEP)
David Turner046f7a02000-09-15 22:42:06 +000024endif
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#
36ifndef OBJ_DIR
37 OBJ_DIR := $(TOP)$(SEP)obj
38endif
39
40
41# The directory where all library files are placed.
42#
Werner Lembergbd547dc2000-09-22 21:23:29 +000043# By default, this is the same as $(OBJ_DIR); however, this can be changed
David Turner046f7a02000-09-15 22:42:06 +000044# to suit particular needs.
45#
46LIB_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#
51LIBRARY := $(PROJECT)
52
53
Werner Lembergbd547dc2000-09-22 21:23:29 +000054# The NO_OUTPUT macro is used to ignore the output of commands.
Werner Lemberge4b32a52000-10-31 20:42:18 +000055#
David Turner046f7a02000-09-15 22:42:06 +000056NO_OUTPUT = 2> nul
57
58
59ifdef 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 Lemberge4b32a52000-10-31 20:42:18 +000071 # This final rule is used to link all object files into a single library.
David Turner046f7a02000-09-15 22:42:06 +000072 # It is part of the system-specific sub-Makefile because not all
73 # librarians accept a simple syntax like
74 #
Werner Lemberge4b32a52000-10-31 20:42:18 +000075 # librarian library_file {list of object files}
David Turner046f7a02000-09-15 22:42:06 +000076 #
77 $(PROJECT_LIBRARY): $(OBJECTS_LIST)
78 -$(CLEAN_LIBRARY) $(NO_OUTPUT)
79 $(LINK_LIBRARY)
80
81endif
82
Werner Lembergbd547dc2000-09-22 21:23:29 +000083# EOF