Skip to content

Commit

Permalink
gh #227 updated Make file with target=linux
Browse files Browse the repository at this point in the history
  • Loading branch information
hari22yuva committed Dec 17, 2024
1 parent 35f6069 commit b63f5d4
Showing 1 changed file with 11 additions and 5 deletions.
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

0 comments on commit b63f5d4

Please sign in to comment.