1ca0551cfSopenharmony_ci# Copyright (c) 2023-2024 Huawei Device Co., Ltd.
2ca0551cfSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3ca0551cfSopenharmony_ci# you may not use this file except in compliance with the License.
4ca0551cfSopenharmony_ci# You may obtain a copy of the License at
5ca0551cfSopenharmony_ci#
6ca0551cfSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7ca0551cfSopenharmony_ci#
8ca0551cfSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9ca0551cfSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10ca0551cfSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11ca0551cfSopenharmony_ci# See the License for the specific language governing permissions and
12ca0551cfSopenharmony_ci# limitations under the License.
13ca0551cfSopenharmony_ciifeq ($(findstring ;, $(PATH)), ;)
14ca0551cfSopenharmony_ci	export PWD:=$(shell cd)
15ca0551cfSopenharmony_ci	export TARGET_DIR := $(PWD)
16ca0551cfSopenharmony_ci	export BUILD_DIR:=$(TARGET_DIR)\build
17ca0551cfSopenharmony_ci	export TARGET:=$(TARGET_DIR)\idl-gen.exe
18ca0551cfSopenharmony_cielse
19ca0551cfSopenharmony_ci	export PWD := $(abspath $(dir $(realpath $(lastword $(MAKEFILE_LIST)))))
20ca0551cfSopenharmony_ci	export TARGET_DIR := $(PWD)
21ca0551cfSopenharmony_ci	export BUILD_DIR = $(TARGET_DIR)/build
22ca0551cfSopenharmony_ci	export TARGET:=$(TARGET_DIR)/idl-gen
23ca0551cfSopenharmony_ciendif
24ca0551cfSopenharmony_ci
25ca0551cfSopenharmony_ciexport CXXFLAGS = -std=c++14 -O2 -Wall -fno-common -fno-strict-aliasing -s
26ca0551cfSopenharmony_ciexport Q := @
27ca0551cfSopenharmony_ciexport MAKEFLAGS += --no-print-directory
28ca0551cfSopenharmony_ci
29ca0551cfSopenharmony_ciMAKE_FILE_NAME = MakefileLinux
30ca0551cfSopenharmony_ciifeq ($(findstring ;, $(PATH)), ;)
31ca0551cfSopenharmony_ci	MAKE_FILE_NAME := MakefileWin
32ca0551cfSopenharmony_ciendif
33ca0551cfSopenharmony_ci
34ca0551cfSopenharmony_ciall:
35ca0551cfSopenharmony_ci	$(Q) echo start build $(TARGET) ...
36ca0551cfSopenharmony_ci	$(Q) $(MAKE) -f $(MAKE_FILE_NAME)
37ca0551cfSopenharmony_ci
38ca0551cfSopenharmony_ciclean:
39ca0551cfSopenharmony_ci	$(Q) $(MAKE) -f $(MAKE_FILE_NAME) clean
40ca0551cfSopenharmony_ci
41ca0551cfSopenharmony_ci.PHONY: clean