1
0
mirror of https://github.com/armink/FlashDB.git synced 2025-01-29 04:32:53 +08:00
FlashDB/demos/linux/Makefile
2021-01-03 22:39:30 +08:00

22 lines
463 B
Makefile

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