Add device capability and get authenticated device list
[platform/core/system/edge-orchestration.git] / CMain / Makefile
1 #
2 # Makefile
3 #
4
5 # Target parameters
6 BIN_DIR                 := bin
7 LIB_DIR                 := lib
8 INC_DIR                 := inc
9 SRC_DIR                 := src
10 LIBRARY_FILE            := orchestration
11 BINARY_FILE             := edge-orchestration
12 SRC_FILES               := \
13                         $(SRC_DIR)/main.c \
14                         $(SRC_DIR)/orchestration_dbus_server.c \
15                         $(SRC_DIR)/orchestration_service.c \
16                         $(SRC_DIR)/orchestration_cipher.c \
17                         $(SRC_DIR)/orchestration_key.c
18 OBJ_FILES               := *.o
19
20 # Build parameter
21 CFLAGS  := -g -Wall -Werror -fPIE -pie -Wno-unused-function
22
23 all: clean build
24
25 build:
26         $(CC) $(CFLAGS) $(SRC_FILES) -o $(BIN_DIR)/$(BINARY_FILE) -I $(INC_DIR) `pkg-config --libs --cflags gio-2.0 gio-unix-2.0 glib-2.0 capi-appfw-app-control` -L$(LIB_DIR) -l$(LIBRARY_FILE) -ldl
27         -rm -f $(OBJ_FILES)
28
29 clean:
30         -rm -f $(OBJ_FILES) 
31         -rm -f $(BIN_DIR)/$(BINARY_FILE)
32
33 .PHONY: build clean