更新了文件名。开始了数据结构
This commit is contained in:
15
Chapter03/IO/makefile
Normal file
15
Chapter03/IO/makefile
Normal file
@@ -0,0 +1,15 @@
|
||||
CC=cc
|
||||
CFLAGS=
|
||||
LDFLAGS=-lm
|
||||
TARGET=test
|
||||
SRC=test.c
|
||||
OBJ=$(SRC:.c=.o)
|
||||
|
||||
$(TARGET): $(OBJ)
|
||||
$(CC) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
%.o: %.c
|
||||
$(CC) $(CFLAGS) -c $< -o $@
|
||||
|
||||
clean:
|
||||
rm -f $(TARGET) $(OBJ)
|
||||
Reference in New Issue
Block a user