Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh #227 updated Make file with target=linux #278

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,20 @@ INC_DIRS += $(ROOT_DIR)/profiles/include
HAL_LIB := dshal
SKELETON_SRCS := $(ROOT_DIR)/skeletons/src/*

# Check if TARGET is unset
ifeq ($(TARGET),)
$(info TARGET NOT SET )
$(info TARGET FORCED TO Linux)
TARGET=linux
SRC_DIRS += $(ROOT_DIR)/skeletons/src
CC := gcc -ggdb -o0 -Wall
$(info TARGET NOT SET )
$(info TARGET FORCED TO linux)
TARGET = linux
endif

# Handle specific TARGET values
ifeq ($(TARGET), linux)
SRC_DIRS += $(ROOT_DIR)/skeletons/src
CC := gcc -ggdb -o0 -Wall
endif


$(info TARGET [$(TARGET)])

ifeq ($(TARGET),arm)
Expand Down