xref: /trunk/main/solenv/gbuild/gbuild_simple.mk (revision b63233d8)
1###############################################################
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20###############################################################
21
22
23
24# this is a subset of gbuild functionality, for use in custom makefiles
25
26include $(GBUILDDIR)/Output.mk
27
28# BuildDirs uses the Output functions already
29include $(GBUILDDIR)/BuildDirs.mk
30
31include $(GBUILDDIR)/Helper.mk
32
33ifeq ($(OS),LINUX)
34include $(GBUILDDIR)/platform/linux.mk
35else
36ifeq ($(OS),WNT)
37ifneq ($(USE_MINGW),)
38include $(GBUILDDIR)/platform/winmingw.mk
39else
40include $(GBUILDDIR)/platform/windows.mk
41endif
42else
43ifeq ($(OS),SOLARIS)
44include $(GBUILDDIR)/platform/solaris.mk
45else
46ifeq ($(OS),MACOSX)
47include $(GBUILDDIR)/platform/macosx.mk
48ifeq ($(OS),FREEBSD)
49include $(GBUILDDIR)/platform/freebsd.mk
50else
51$(eval $(call gb_Output_error,Unsupported OS: $(OS)))
52endif
53endif
54endif
55endif
56endif
57