mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-25 18:23:22 +00:00
优化makefile (#352)
This commit is contained in:
@ -1,8 +1,10 @@
|
||||
|
||||
all: video.o
|
||||
|
||||
SRC = $(wildcard *.c)
|
||||
OBJ = $(SRC:.c=.o)
|
||||
CFLAGS += -I .
|
||||
|
||||
.PHONY: all
|
||||
|
||||
video.o: video.c
|
||||
$(CC) $(CFLAGS) -c video.c -o video.o
|
||||
all: $(OBJ)
|
||||
|
||||
%.o: %.c
|
||||
$(CC) $(CFLAGS) -c $< -o $@
|
||||
|
Reference in New Issue
Block a user