author | mbaesken |
Tue, 02 Jul 2019 13:45:08 +0200 | |
changeset 55556 | 19d0b382f086 |
parent 54148 | 62e4ada7c4c8 |
permissions | -rw-r--r-- |
54148
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
1 |
# |
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
2 |
# Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved. |
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
3 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
4 |
# |
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
5 |
# This code is free software; you can redistribute it and/or modify it |
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
6 |
# under the terms of the GNU General Public License version 2 only, as |
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
7 |
# published by the Free Software Foundation. Oracle designates this |
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
8 |
# particular file as subject to the "Classpath" exception as provided |
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
9 |
# by Oracle in the LICENSE file that accompanied this code. |
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
10 |
# |
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
11 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
12 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
13 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
14 |
# version 2 for more details (a copy is included in the LICENSE file that |
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
15 |
# accompanied this code). |
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
16 |
# |
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
17 |
# You should have received a copy of the GNU General Public License version |
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
18 |
# 2 along with this work; if not, write to the Free Software Foundation, |
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
19 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
20 |
# |
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
21 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
22 |
# or visit www.oracle.com if you need additional information or have any |
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
23 |
# questions. |
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
24 |
# |
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
25 |
|
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
26 |
# This makefile creates the tar files. It needs to be called with make -r |
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
27 |
# which is why it's separated out into its own file. |
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
28 |
|
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
29 |
# Input parameters |
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
30 |
# SRC_DIR |
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
31 |
# TAR_FILE |
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
32 |
|
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
33 |
ifeq ($(SRC_DIR), ) |
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
34 |
$(error SRC_DIR not set) |
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
35 |
endif |
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
36 |
ifeq ($(TAR_FILE), ) |
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
37 |
$(error TAR_FILE not set) |
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
38 |
endif |
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
39 |
|
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
40 |
default: tars |
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
41 |
|
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
42 |
tars : $(TAR_FILE) |
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
43 |
|
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
44 |
$(TAR_FILE): $(shell find $(SRC_DIR) -type f) |
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
45 |
@echo 'Creating compiler package $@' |
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
46 |
cd $(dir $(SRC_DIR)) && tar -czf $@ $(notdir $(SRC_DIR))/* |
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
47 |
touch $@ |
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
48 |
|
62e4ada7c4c8
8220093: Change to GCC 8.2 for building on Linux at Oracle
erikj
parents:
diff
changeset
|
49 |
.PHONY: default tars |