1.makefile电子词典项目引用
objs:=ser.o fun.o
Target:=r
CC:=gcc
ob:=-c -o
LINKS:=-lsqlite3 -pthread
-include ./makefile.cfg
$(Target):$(objs)
$(CC) $^ $(LINKS) -o $@
%.o:%.c
$(CC) $^ $(ob) $@
clean:
rm $(objs)
.PHONY:clean clean_elf clean_all
clean_elf:
rm $(Target)
clean_all:
rm $(objs) $(Target)