first commit
This commit is contained in:
15
光标操作/cursor_demo/Makefile
Normal file
15
光标操作/cursor_demo/Makefile
Normal file
@@ -0,0 +1,15 @@
|
||||
CC=gcc
|
||||
obj=console.o test.o
|
||||
target=test
|
||||
CFLAGS=-Wall
|
||||
|
||||
$(target):$(obj)
|
||||
@$(CC) $^ -o $@ $(CFLAGS)
|
||||
test.o:test.c
|
||||
@$(CC) -c $< -o $@ $(CFLAGS)
|
||||
console.o:console.c
|
||||
@$(CC) -c $< -o $@ $(CFLAGS)
|
||||
|
||||
|
||||
clean:
|
||||
@rm $(obj) $(target)
|
Reference in New Issue
Block a user