forked from OSchip/llvm-project
47 lines
1.2 KiB
Makefile
47 lines
1.2 KiB
Makefile
#===-- Makefile.pstl -----------------------------------------------------===##
|
|
#
|
|
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
# See https://llvm.org/LICENSE.txt for license information.
|
|
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
#
|
|
#===----------------------------------------------------------------------===##
|
|
|
|
#------------------------------------------------------------------------------
|
|
# Define rules for making the Parallel STL library.
|
|
#------------------------------------------------------------------------------
|
|
|
|
proj_root ?= $(CURDIR)/..
|
|
|
|
include $(proj_root)/build/Makefile.common
|
|
|
|
.PHONY: clean
|
|
|
|
VPATH = $(proj_root)/src
|
|
|
|
lib_src = $(wildcard $(proj_root)/src/*.cpp)
|
|
lib_obj = $(notdir $(lib_src:.cpp=$(OBJ_SFX)))
|
|
|
|
all: pstl
|
|
|
|
pstl: $(PSTL_LIB_NAME)
|
|
|
|
%$(OBJ_SFX): %.cpp $(proj_root)/build/Makefile.pstl
|
|
$(CPLUS) $(CPLUS_FLAGS) -c $< $(FKEY)o$@
|
|
|
|
%.s: %.cpp $(proj_root)/build/Makefile
|
|
$(CPLUS) $(CPLUS_FLAGS) -S $< $(FKEY)o$@
|
|
|
|
%.E: %.cpp
|
|
$(CPLUS) $(CPLUS_FLAGS) -E $< >$@
|
|
|
|
clean:
|
|
$(DEL_CMD) *$(OBJ_SFX) *.lib *.dll *.so *.exp *$(PSTL_LIB_NAME)*
|
|
|
|
info:
|
|
@echo OS = $(os_name)
|
|
@echo proj_root = "$(proj_root)"
|
|
@echo $(CURDIR)
|
|
@echo VPATH=$(VPATH)
|
|
|
|
-include *.d
|