优化了命名
This commit is contained in:
12
C10-Makefile/testmake/makefile
Normal file
12
C10-Makefile/testmake/makefile
Normal file
@@ -0,0 +1,12 @@
|
||||
OBJS=main.o tool1.o tool2.o
|
||||
CC=gcc
|
||||
CFLAGS+=-c -Wall -g
|
||||
|
||||
mytool:$(OBJS)
|
||||
$(CC) $^ -o $@
|
||||
|
||||
%.o:%.c
|
||||
$(CC) $^ $(CFLAGS) -o $@
|
||||
|
||||
clean:
|
||||
$(RM) *.o mytool -r
|
||||
Reference in New Issue
Block a user