You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
549 B
Makefile
21 lines
549 B
Makefile
CC = cc
|
|
INCLUDE = -I./easylogger/plugins/file -I./easylogger/inc -I../../../easylogger/inc
|
|
LIB=-lpthread
|
|
|
|
OBJ += $(patsubst %.c, %.o, $(wildcard *.c))
|
|
OBJ += $(patsubst %.c, %.o, $(wildcard ../../../easylogger/src/*.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/*
|