1
0
mirror of https://github.com/armink/EasyLogger.git synced 2025-02-01 05:52:52 +08:00
EasyLogger/demo/os/linux/Makefile
qintl b3c38630e9 Fix plugin file the structure and format
Signed-off-by: qintl <qintl@yytek.com>
2019-01-10 15:27:03 +08:00

24 lines
693 B
Makefile
Executable File

CC = cc
ROOTPATH=../../..
INCLUDE = -I./easylogger/inc -I./easylogger/plugins/ -I$(ROOTPATH)/easylogger/plugins/ -I$(ROOTPATH)/easylogger/inc
LIB=-lpthread
OBJ += $(patsubst %.c, %.o, $(wildcard *.c))
OBJ += $(patsubst %.c, %.o, $(wildcard $(ROOTPATH)/easylogger/src/*.c))
OBJ += $(patsubst %.c, %.o, $(wildcard $(ROOTPATH)/easylogger/plugins/file/elog_file.c))
OBJ += $(patsubst %.c, %.o, $(wildcard easylogger/port/*.c))
OBJ += $(patsubst %.c, %.o, $(wildcard easylogger/plugins/file/*.c))
CFLAGS = -O0 -g3 -Wall
target = EasyLoggerLinuxDemo
all:$(OBJ)
$(CC) out/*.o -o $(target) $(LIB)
mv $(target) out
%.o:%.c
$(CC) $(CFLAGS) -c $< -o $@ $(INCLUDE)
mv $@ out
clean:
rm -rf out/*