src = $(wildcard *.c)
target = $(patsubst %.c, %, $(src))
CC = gcc
CFLAGS = -Wall -g
LDFLAGS = -lpthread
$(DST):$(SRC)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
c:
-rm -f $(target)
@-rm -f *~ .*swp a.out
@-rm -f *.o
@-rm -f *.s
.PHONY:c
makefile
最新推荐文章于 2022-02-25 19:38:17 发布