make: Move lib make rules to src dir, consistency with meson build

This commit is contained in:
Antoine SOULIER
2022-07-29 15:44:35 +02:00
parent 7177a593e6
commit 67ed2e5d80
4 changed files with 11 additions and 12 deletions
+11 -1
View File
@@ -82,7 +82,17 @@ endef
.PHONY: default
default:
include makefile.mk
INCLUDE += include
SRC_DIR = src
include $(SRC_DIR)/makefile.mk
TOOLS_DIR = tools
-include $(TOOLS_DIR)/makefile.mk
TEST_DIR := test
-include $(TEST_DIR)/makefile.mk
#
-6
View File
@@ -14,9 +14,6 @@
# limitations under the License.
#
INCLUDE += include
SRC_DIR := src
liblc3_src += \
$(SRC_DIR)/attdet.c \
$(SRC_DIR)/bits.c \
@@ -36,6 +33,3 @@ liblc3_cflags += -ffast-math
$(eval $(call add-lib,liblc3))
default: liblc3
-include tools/makefile.mk
-include test/makefile.mk
-2
View File
@@ -14,8 +14,6 @@
# limitations under the License.
#
TEST_DIR := test
test_py:
$(V)cd $(TEST_DIR) && python3 setup.py && PYTHONPATH=build python3 run.py
-3
View File
@@ -14,9 +14,6 @@
# limitations under the License.
#
TOOLS_DIR = tools
elc3_src += \
$(TOOLS_DIR)/elc3.c \
$(TOOLS_DIR)/lc3bin.c \