Skip to content

Commit

Permalink
remove application build support from top level Makefile on Linux
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Cornu <marcel.d.cornu@intel.com>
  • Loading branch information
mdcornu authored and tkanteck committed Sep 24, 2024
1 parent c22d8a1 commit 76fdec5
Showing 1 changed file with 20 additions and 39 deletions.
59 changes: 20 additions & 39 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2020-2023, Intel Corporation
# Copyright (c) 2020-2024, Intel Corporation
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
Expand All @@ -25,25 +25,18 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

.PHONY: all clean style install uninstall help TAGS
.PHONY: all clean style install uninstall help TAGS warning build-cmake clean-cmake

all:
BUILD_DIR ?= build

all: warning
$(MAKE) -C lib
$(MAKE) -C test
$(MAKE) -C perf
$(MAKE) -C examples

clean:
$(MAKE) -C lib clean
$(MAKE) -C test clean
$(MAKE) -C perf clean
$(MAKE) -C examples clean

style:
$(MAKE) -C lib style
$(MAKE) -C test style
$(MAKE) -C perf style
$(MAKE) -C examples style

install:
$(MAKE) -C lib install
Expand All @@ -57,42 +50,30 @@ help:
doxy:
$(MAKE) -C lib doxy

.PHONY: TAGS
TAGS:
find ./ -name "*.[ch]" -print | etags -
find ./ -name '*.asm' | etags -a -
find ./ -name '*.inc' | etags -a -

# Check spelling in the code with codespell.
# See https://github.com/codespell-project/codespell for more details.
# Codespell options explained:
# -d -- disable colours (emacs colours it anyway)
# -L -- List of words to be ignored
# -S <skip> -- skip file types
# -I FILE -- File containing words to be ignored
#
CODESPELL ?= codespell
CS_IGNORE_WORDS ?= iinclude,struc,fo,ue,od,ba,padd

.PHONY: spellcheck
spellcheck:
$(CODESPELL) -d -L $(CS_IGNORE_WORDS) \
-S "*.obj,*.o,*.a,*.so,*.lib,*~,*.so,*.so.*,*.d,imb-perf" \
-S "imb-kat,imb-xvalid,imb-acvp,imb-fuzz-api,imb-fuzz-direct-api" \
-S "imb-wycheproof" \
./lib ./perf ./test README.md SECURITY.md CONTRIBUTING \
Makefile win_x64.mak ReleaseNotes.txt LICENSE $(CS_EXTRA_OPTS)

# cppcheck analysis check
cppcheck:
$(MAKE) -C lib cppcheck
$(MAKE) -C test cppcheck
$(MAKE) -C perf cppcheck
$(MAKE) -C examples cppcheck

# cppcheck bughunt analysis check
bughunt:
$(MAKE) -C lib bughunt
$(MAKE) -C test bughunt
$(MAKE) -C perf bughunt
$(MAKE) -C examples bughunt

# build cmake project
build-cmake:
cmake -B $(BUILD_DIR)
cmake --build $(BUILD_DIR) --parallel

# clean cmake project
clean-cmake:
cmake --build $(BUILD_DIR) --target clean

warning:
@echo "NOTE: Building the project with Makefiles is deprecated since v2.0 (replaced by CMake)."
@echo " Starting from v2.0, only the library can be built using Makefiles and not the applications."
@echo " See INSTALL.md for instructions to build the library and applications using CMake."
@echo ""

0 comments on commit 76fdec5

Please sign in to comment.