update for HEAD-2003050101
[reactos.git] / lib / freetype / builds / unix / unix.mk
1 #
2 # FreeType 2 configuration rules for UNIX platforms
3 #
4
5
6 # Copyright 1996-2000, 2002 by
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 have_mk := $(strip $(wildcard $(TOP_DIR)/builds/unix/unix-def.mk))
16 ifneq ($(have_mk),)
17   include $(TOP_DIR)/builds/unix/unix-def.mk
18   include $(TOP_DIR)/builds/unix/unix-cc.mk
19 else
20   # we are building FT2 not in the src tree
21   include $(OBJ_DIR)/unix-def.mk
22   include $(OBJ_DIR)/unix-cc.mk
23 endif
24
25 ifdef BUILD_PROJECT
26
27   .PHONY: clean_project distclean_project
28
29   # Now include the main sub-makefile.  It contains all the rules used to
30   # build the library with the previous variables defined.
31   #
32   include $(TOP_DIR)/builds/$(PROJECT).mk
33
34
35   # The cleanup targets.
36   #
37   clean_project: clean_project_unix
38   distclean_project: distclean_project_unix
39
40
41   # This final rule is used to link all object files into a single library.
42   # It is part of the system-specific sub-Makefile because not all
43   # librarians accept a simple syntax like
44   #
45   #   librarian library_file {list of object files}
46   #
47   $(PROJECT_LIBRARY): $(OBJECTS_LIST)
48 ifdef CLEAN_LIBRARY
49           -$(CLEAN_LIBRARY) $(NO_OUTPUT)
50 endif
51           $(LINK_LIBRARY)
52
53 endif
54
55 include $(TOP_DIR)/builds/unix/install.mk
56
57 # EOF