diff options
author | dzwdz | 2022-08-29 13:57:47 +0200 |
---|---|---|
committer | dzwdz | 2022-08-29 13:58:02 +0200 |
commit | 4ae57a7fb13e68c5e6f1c1246a867555dbd986db (patch) | |
tree | 3bee7f7eee21e9f2ed3b9f07dd1671a1c230cf66 /Makefile | |
parent | edb7fc07bf93e4a1883cccf45ad7a4b2cbf390d9 (diff) |
user/lua: implement the bare minimum for it to link and "run"
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -7,15 +7,16 @@ CHECK = sparse CFLAGS += -g -std=gnu99 -ffreestanding -O2 -ftrack-macro-expansion=0 CFLAGS += -Wall -Wextra -Wold-style-definition -Werror=implicit-function-declaration -CFLAGS += -mgeneral-regs-only -Wno-address-of-packed-member +CFLAGS += -Wno-address-of-packed-member CFLAGS += -Isrc/ -Isrc/shared/include/ -KERNEL_CFLAGS = $(CFLAGS) -mno-sse +KERNEL_CFLAGS = $(CFLAGS) -mno-sse -mgeneral-regs-only USER_CFLAGS = $(CFLAGS) -Isrc/user/lib/include/ SPARSEFLAGS = -Wno-non-pointer-null LFLAGS = -ffreestanding -O2 -nostdlib -lgcc -Wl,-zmax-page-size=4096 -Wl,--no-warn-mismatch -QFLAGS = -no-reboot +# TODO optimize memory use +QFLAGS = -no-reboot -m 1g ifdef NET_DIRECT QFLAGS += -nic socket,model=rtl8139,connect=:1234,mac=52:54:00:ca:77:1a,id=n1 else @@ -37,8 +38,9 @@ define from_sources endef -.PHONY: all boot debug lint check clean -all: out/boot.iso out/libm.a check +.PHONY: all portdeps boot debug lint check clean +all: portdeps out/boot.iso check +portdeps: out/libc.a out/libm.a boot: all out/hdd qemu-system-x86_64 -drive file=out/boot.iso,format=raw,media=disk $(QFLAGS) -serial stdio |