]> git.saurik.com Git - apple/coreosmakefiles.git/blame - ProjectBuilder/Makefile.Preamble.Common
CoreOSMakefiles-31.tar.gz
[apple/coreosmakefiles.git] / ProjectBuilder / Makefile.Preamble.Common
CommitLineData
fdbff003
A
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##
31ifndef CoreOSMakefiles
32CoreOSMakefiles = /$(MAKEFILEPATH)/CoreOS
33endif
34CoreOSMakefiles := $(shell cd $(CoreOSMakefiles) && pwd)
35
36##
37# Include the Classics
38##
39include $(CoreOSMakefiles)/Standard/Standard.make
40
41#############
42# Variables #
43#############
44
45##
46# Remember the name of the top-level project when using aggregates.
47##
48TOP_PROJECT = $(NAME)
49OTHER_RECURSIVE_VARIABLES += TOP_PROJECT CoreOSMakefiles
50
51##
52# Set some reasonable defaults for RC variables.
53##
54OBJROOT = /tmp/$(TOP_PROJECT)/Build
55SYMROOT = /tmp/$(TOP_PROJECT)/Debug
56DSTROOT = /tmp/$(TOP_PROJECT)/Release
57
58##
59# Add project version info to the binary.
60##
61OTHER_GENERATED_OFILES += $(VERS_OFILE)
62VERSIONING_SYSTEM = next-sgs
63
64##
65# Figure out if we have any man pages.
66##
67MANDIR = /usr/share/man
68MAN0DIR = $(MANDIR)/man0
69MAN1DIR = $(MANDIR)/man1
70MAN2DIR = $(MANDIR)/man2
71MAN3DIR = $(MANDIR)/man3
72MAN4DIR = $(MANDIR)/man4
73MAN5DIR = $(MANDIR)/man5
74MAN6DIR = $(MANDIR)/man6
75MAN7DIR = $(MANDIR)/man7
76MAN8DIR = $(MANDIR)/man8
77MAN9DIR = $(MANDIR)/man9
78MAN0FILES = $(filter %.0,$(OTHERSRCS))
79MAN1FILES = $(filter %.1,$(OTHERSRCS))
80MAN2FILES = $(filter %.2,$(OTHERSRCS))
81MAN3FILES = $(filter %.3,$(OTHERSRCS))
82MAN4FILES = $(filter %.4,$(OTHERSRCS))
83MAN5FILES = $(filter %.5,$(OTHERSRCS))
84MAN6FILES = $(filter %.6,$(OTHERSRCS))
85MAN7FILES = $(filter %.7,$(OTHERSRCS))
86MAN8FILES = $(filter %.8,$(OTHERSRCS))
87MAN9FILES = $(filter %.9,$(OTHERSRCS))
88MANFILES = $(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##
105ifdef SHELLTOOL
106OTHERLINKEDOFILES =
107OTHER_GENERATED_OFILES =
108STRIP_ON_INSTALL = NO
109endif
110
111AFTER_INSTALL += install-man install-source
112
113ifeq ($(PROJTYPE),LIBRARY)
114AFTER_INSTALL += install-ofilelist
115endif
116
117##
118# Default
119##
120default: all