-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sw: Switch to non-recursive Make build system (#171)
- Loading branch information
Showing
72 changed files
with
534 additions
and
912 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Copyright 2023 ETH Zurich and University of Bologna. | ||
# Licensed under the Apache License, Version 2.0, see LICENSE for details. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
# Luca Colagrande <[email protected]> | ||
|
||
DATA_DIR := $(realpath $(SRC_DIR)/../data) | ||
SCRIPTS_DIR := $(realpath $(SRC_DIR)/../scripts) | ||
|
||
$(APP)_DATA_CFG ?= $(DATA_DIR)/params.json | ||
SECTION ?= | ||
DATA_H := $($(APP)_BUILD_DIR)/data.h | ||
DATAGEN_PY = $(SCRIPTS_DIR)/datagen.py | ||
|
||
$(APP)_HEADERS := $(DATA_H) | ||
$(APP)_INCDIRS := $(dir $(DATA_H)) $(SRC_DIR) | ||
|
||
$(dir $(DATA_H)): | ||
mkdir -p $@ | ||
|
||
$(DATA_H): DATA_CFG := $($(APP)_DATA_CFG) | ||
$(DATA_H): $(DATAGEN_PY) $($(APP)_DATA_CFG) | $(dir $(DATA_H)) | ||
$< -c $(DATA_CFG) --section="$(SECTION)" $@ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,32 +4,6 @@ | |
# | ||
# Luca Colagrande <[email protected]> | ||
|
||
# Usage of absolute paths is required to externally include this Makefile | ||
MK_DIR := $(dir $(realpath $(lastword $(MAKEFILE_LIST)))) | ||
|
||
DATA_DIR := $(realpath $(MK_DIR)/$(APP)/data) | ||
SCRIPTS_DIR := $(realpath $(MK_DIR)/$(APP)/scripts) | ||
SRC_DIR := $(realpath $(MK_DIR)/$(APP)/src) | ||
COMMON_SRC_DIR := $(realpath $(MK_DIR)/src) | ||
|
||
DATA_CFG ?= $(DATA_DIR)/params.json | ||
SECTION ?= | ||
|
||
SRCS ?= $(realpath $(SRC_DIR)/main.c) | ||
INCDIRS ?= $(dir $(DATA_H)) $(SRC_DIR) $(COMMON_SRC_DIR) | ||
|
||
DATAGEN_PY = $(SCRIPTS_DIR)/datagen.py | ||
DATA_H ?= $(DATA_DIR)/data.h | ||
|
||
$(dir $(DATA_H)): | ||
mkdir -p $@ | ||
|
||
$(DATA_H): $(DATAGEN_PY) $(DATA_CFG) | $(dir $(DATA_H)) | ||
$< -c $(DATA_CFG) --section="$(SECTION)" $@ | ||
|
||
.PHONY: clean-data clean | ||
|
||
clean-data: | ||
rm -f $(DATA_H) | ||
|
||
clean: clean-data | ||
include $(ROOT)/sw/apps/common.mk | ||
$(APP)_INCDIRS += $(ROOT)/sw/dnn/src | ||
$(APP)_INCDIRS += $(ROOT)/sw/blas |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.