Skip to content

Commit

Permalink
kernel: Add missing dependencies on c/printf in makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
mintsuki committed Dec 19, 2023
1 parent 54e094f commit 6056f2e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions kernel/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -109,21 +109,21 @@ clean:

.PHONY: distclean
distclean: clean
rm -rf freestanding_headers flanterm-c
rm -rf freestanding_headers flanterm-c c/printf

.PHONY: install
install:
install -d "$(DESTDIR)$(PREFIX)/boot"
install -s --strip-program=x86_64-vinix-strip $(KERNEL) "$(DESTDIR)$(PREFIX)/boot/"

blob.o: $(VFILES) freestanding_headers flanterm-c
blob.o: $(VFILES) freestanding_headers flanterm-c c/printf
$(V) $(VFLAGS) $(INTERNALVFLAGS) -o blob.c .
$(CC) $(CFLAGS) $(INTERNALCFLAGS) -w -c blob.c -o $@

%.o: %.c freestanding_headers flanterm-c
%.o: %.c freestanding_headers flanterm-c c/printf
$(CC) $(CFLAGS) $(INTERNALCFLAGS) -c $< -o $@

%.o: %.S freestanding_headers flanterm-c
%.o: %.S freestanding_headers flanterm-c c/printf
$(CC) $(CFLAGS) $(INTERNALCFLAGS) -c $< -o $@

$(KERNEL): blob.o $(COBJ)
Expand Down

0 comments on commit 6056f2e

Please sign in to comment.