2021-08-29 00:02:47 +08:00

16 lines
226 B
Makefile

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)