Skip to content

Commit

Permalink
Bug fix and makefile improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
konect-V committed Aug 17, 2024
1 parent 977cd81 commit 0cddfda
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions bootstrap/sys-apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ packages:
- host-gcc
pkgs_required:
- mlibc
- cjson
- freetype
- libjpeg
- kot-graphics
Expand Down
5 changes: 5 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ update:
run:
@ cd target && BOOT_DEVICE=$(BOOT_DEVICE) LC_ALL=C make $(TARGET)/run

clean_build:
@ rm -f target/$(TARGET)/boot-kot.img
@ cd target && BOOT_DEVICE=$(BOOT_DEVICE) LC_ALL=C PACKAGE=all make $(TARGET)/build
@ cp target/$(TARGET)/boot-kot.img target/$(TARGET)/clean-boot-kot.img

all: init build run

github-action: deps-debian init build
Expand Down
2 changes: 1 addition & 1 deletion sources/core/apps/welcome/target/amd64/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ $(LIB)/%_c.o: $(SOURCE)/%.c

link:
@ mkdir -m 777 -p $(BIN)
$(CC) $(LDFLAGS) -o $(BIN)/welcome $(OBJS) $(LIBRARIES)/libkot-graphics.a $(LIBRARIES)/libfreetype.a $(LIBRARIES)/libz.a $(LIBRARIES)/libturbojpeg.a$(LIBRARIES)/libcjson.a
$(CC) $(LDFLAGS) -o $(BIN)/welcome $(OBJS) $(LIBRARIES)/libkot-graphics.a $(LIBRARIES)/libfreetype.a $(LIBRARIES)/libz.a $(LIBRARIES)/libturbojpeg.a

copy_res:
@ mkdir -m 777 -p $(BIN)/res/welcome
Expand Down

0 comments on commit 0cddfda

Please sign in to comment.