Skip to content

Commit

Permalink
Add gh#146 : Adding first level changes for linux message handler
Browse files Browse the repository at this point in the history
  • Loading branch information
kanjoe24 committed Nov 22, 2024
1 parent c235f5a commit 76e4f12
Show file tree
Hide file tree
Showing 4 changed files with 945 additions and 0 deletions.
53 changes: 53 additions & 0 deletions keyhandler/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# *
# * If not stated otherwise in this file or this component's LICENSE file the
# * following copyright and licenses apply:
# *
# * Copyright 2023 RDK Management
# *
# * Licensed under the Apache License, Version 2.0 (the "License");
# * you may not use this file except in compliance with the License.
# * You may obtain a copy of the License at
# *
# * http://www.apache.org/licenses/LICENSE-2.0
# *
# * Unless required by applicable law or agreed to in writing, software
# * distributed under the License is distributed on an "AS IS" BASIS,
# * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# * See the License for the specific language governing permissions and
# * limitations under the License.
# *
ROOT_DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
BIN_DIR := $(ROOT_DIR)/build/bin
#TOP_DIR := $(ROOT_DIR)
ECHOE = /bin/echo -e
TARGET_EXEC = ut_core_key_input

# Variables
CC = gcc -ggdb -o0 -Wall
#CFLAGS = -Wall -Wextra -pedantic -std=c11
SRC = keyhandler.c ../src/ut_kvp_profile.c
INC_DIRS = ../include ../framework/CUnit-2.1-3/CUnit/Headers ../framework/ut-control/include

# Final flags
INC_FLAGS := $(addprefix -I,$(INC_DIRS))
XCFLAGS += $(CFLAGS) $(INC_FLAGS) -DUT_CUNIT
XLDFLAGS += -L../framework/ut-control/build/linux/lib -lut_control -Wl,-rpath, -pthread -lpthread

# Default target
all: $(TARGET_EXEC)

# Build target
$(TARGET_EXEC): $(SRC)
$(CC) $(SRC) $(XCFLAGS) $(XLDFLAGS) -o $(TARGET_EXEC)
@cp -r ../framework/ut-control/build/linux/lib/libut_control.* .

# Clean target
clean:
rm -f $(TARGET_EXEC)

# # Run target
# run: $(TARGTARGET_EXECET)
# ./$(TARGET_EXEC) -p linux_profile_5.28.yaml -m mykeymessage.yaml

# Phony targets
.PHONY: all clean
Loading

0 comments on commit 76e4f12

Please sign in to comment.