]> git.saurik.com Git - apple/coreosmakefiles.git/blob - ProjectBuilder/Makefile.Preamble.Common
CoreOSMakefiles-40.tar.gz
[apple/coreosmakefiles.git] / ProjectBuilder / Makefile.Preamble.Common
1 ##
2 # Common ProjectBuilder-style Premable.
3 #
4 # Wilfredo Sanchez | wsanchez@apple.com
5 # Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
6 #
7 # @APPLE_LICENSE_HEADER_START@
8 #
9 # Portions Copyright (c) 1999 Apple Computer, Inc. All Rights
10 # Reserved. This file contains Original Code and/or Modifications of
11 # Original Code as defined in and that are subject to the Apple Public
12 # Source License Version 1.1 (the "License"). You may not use this file
13 # except in compliance with the License. Please obtain a copy of the
14 # License at http://www.apple.com/publicsource and read it before using
15 # this file.
16 #
17 # The Original Code and all software distributed under the License are
18 # distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
19 # EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
20 # INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
21 # FITNESS FOR A PARTICULAR PURPOSE OR NON- INFRINGEMENT. Please see the
22 # License for the specific language governing rights and limitations
23 # under the License.
24 #
25 # @APPLE_LICENSE_HEADER_END@
26 ##
27
28 ##
29 # Where to find Makefiles
30 ##
31 ifndef CoreOSMakefiles
32 CoreOSMakefiles = /$(MAKEFILEPATH)/CoreOS
33 endif
34 CoreOSMakefiles := $(shell cd $(CoreOSMakefiles) && pwd)
35
36 ##
37 # Include the Classics
38 ##
39 include $(CoreOSMakefiles)/Standard/Standard.make
40
41 #############
42 # Variables #
43 #############
44
45 ##
46 # Remember the name of the top-level project when using aggregates.
47 ##
48 TOP_PROJECT = $(NAME)
49 OTHER_RECURSIVE_VARIABLES += TOP_PROJECT CoreOSMakefiles
50
51 ##
52 # Set some reasonable defaults for RC variables.
53 ##
54 OBJROOT = /tmp/$(TOP_PROJECT)/Build
55 SYMROOT = /tmp/$(TOP_PROJECT)/Debug
56 DSTROOT = /tmp/$(TOP_PROJECT)/Release
57
58 ##
59 # Add project version info to the binary.
60 ##
61 OTHER_GENERATED_OFILES += $(VERS_OFILE)
62 VERSIONING_SYSTEM = next-sgs
63
64 ##
65 # Figure out if we have any man pages.
66 ##
67 MANDIR = /usr/share/man
68 MAN0DIR = $(MANDIR)/man0
69 MAN1DIR = $(MANDIR)/man1
70 MAN2DIR = $(MANDIR)/man2
71 MAN3DIR = $(MANDIR)/man3
72 MAN4DIR = $(MANDIR)/man4
73 MAN5DIR = $(MANDIR)/man5
74 MAN6DIR = $(MANDIR)/man6
75 MAN7DIR = $(MANDIR)/man7
76 MAN8DIR = $(MANDIR)/man8
77 MAN9DIR = $(MANDIR)/man9
78 MAN0FILES = $(filter %.0,$(OTHERSRCS))
79 MAN1FILES = $(filter %.1,$(OTHERSRCS))
80 MAN2FILES = $(filter %.2,$(OTHERSRCS))
81 MAN3FILES = $(filter %.3,$(OTHERSRCS))
82 MAN4FILES = $(filter %.4,$(OTHERSRCS))
83 MAN5FILES = $(filter %.5,$(OTHERSRCS))
84 MAN6FILES = $(filter %.6,$(OTHERSRCS))
85 MAN7FILES = $(filter %.7,$(OTHERSRCS))
86 MAN8FILES = $(filter %.8,$(OTHERSRCS))
87 MAN9FILES = $(filter %.9,$(OTHERSRCS))
88 MANFILES = $(MAN1FILES) \
89 $(MAN2FILES) \
90 $(MAN3FILES) \
91 $(MAN4FILES) \
92 $(MAN5FILES) \
93 $(MAN6FILES) \
94 $(MAN7FILES) \
95 $(MAN8FILES) \
96 $(MAN9FILES)
97
98 ###########
99 # Targets #
100 ###########
101
102 ##
103 # See postamble for info on these.
104 ##
105 ifdef SHELLTOOL
106 OTHERLINKEDOFILES =
107 OTHER_GENERATED_OFILES =
108 STRIP_ON_INSTALL = NO
109 endif
110
111 AFTER_INSTALL += install-man install-source
112
113 ifeq ($(PROJTYPE),LIBRARY)
114 AFTER_INSTALL += install-ofilelist
115 endif
116
117 ##
118 # Default
119 ##
120 default: all