diff --git a/apps/base/echo/Makefile b/apps/base/echo/Makefile index 53a186f..a55c8c2 100644 --- a/apps/base/echo/Makefile +++ b/apps/base/echo/Makefile @@ -59,6 +59,7 @@ build: $(FILENAME) mv $(FILENAME) ../../../out/system/$(FILENAME) $(FILENAME): $(OBJ) + $(info Linking $@) $(CC) $(LDFLAGS) $(SYSROOT) $(OBJ) -o $@ %.o: %.c $(HEADERS) diff --git a/apps/system/init/Makefile b/apps/system/init/Makefile index dac3584..bbf7b37 100644 --- a/apps/system/init/Makefile +++ b/apps/system/init/Makefile @@ -53,6 +53,7 @@ build: $(FILENAME) mv $(FILENAME) ../../../out/system/$(FILENAME) $(FILENAME): $(OBJ) + $(info Linking $@) $(CC) $(LDFLAGS) $(SYSROOT) $(OBJ) -lssp -linit -lsys -lgraph -o $@ %.o: %.c $(HEADERS) diff --git a/libc/Interpreter/Makefile b/libc/Interpreter/Makefile index f374fe9..472d2e2 100644 --- a/libc/Interpreter/Makefile +++ b/libc/Interpreter/Makefile @@ -34,19 +34,24 @@ CFLAGS := -fPIC -fPIE -I$(INCLUDE) build: $(OBJECT_NAME) $(OBJECT_NAME): $(OBJ) + $(info Linking $@) $(CC) -static -fPIC -fPIE -Wl,-soname,$(SO_NAME) $(SYSROOT) $(OBJ) -o $(OUTPUT_DIR)$@ $(OBJDUMP) -d $(OUTPUT_DIR)$@ > file_dump.map %.o: %.c + $(info Compiling $<) $(CC) $(CFLAGS) -std=c17 -c $< -o $@ %.o: %.cpp + $(info Compiling $<) $(CC) $(CFLAGS) -std=c++20 -c $< -o $@ %.o: %.S + $(info Compiling $<) $(AS) -c $< -o $@ %.o: %.asm + $(info Compiling $<) $(NASM) $< -f $(ASM_ARCH) -o $@ clean: diff --git a/libc/runtime/Makefile b/libc/runtime/Makefile index 3bc388e..c63af5d 100644 --- a/libc/runtime/Makefile +++ b/libc/runtime/Makefile @@ -26,12 +26,15 @@ build: $(OBJ) cp $(CRTBEGIN_PATH) $(CRTEND_PATH) $(CRTI_PATH) $(CRTN_PATH) ../../out/system/lib/ %.o: %.c + $(info Compiling $<) $(CC) -nostdlib -mno-red-zone -std=c17 -c $< -o $@ %.o: %.asm + $(info Compiling $<) $(NASM) $< -f $(ASM_ARCH) -o $@ %.o: %.S + $(info Compiling $<) $(AS) -c $< -o $@ clean: diff --git a/libc/src/Makefile b/libc/src/Makefile index f05b514..f688c7f 100644 --- a/libc/src/Makefile +++ b/libc/src/Makefile @@ -31,19 +31,24 @@ CFLAGS := -fPIC -I$(INCLUDE) build: $(OBJECT_NAME) $(OBJECT_NAME): $(OBJ) + $(info Linking $@) $(AR) rcs $(OUTPUT_DIR)$@ $(OBJ) %.o: %.c + $(info Compiling $<) $(CC) $(CFLAGS) -std=c17 -c $< -o $@ %.o: %.cpp + $(info Compiling $<) $(CC) $(CFLAGS) -std=c++20 -c $< -o $@ %.o: %.S + $(info Compiling $<) $(AS) -c $< -o $@ %.o: %.asm + $(info Compiling $<) $(NASM) $< -f $(ASM_ARCH) -o $@ clean: - rm -f $(OBJ) + rm -f $(OBJ) file_dump.map diff --git a/libs/libgraph/Makefile b/libs/libgraph/Makefile index e516b83..4ad3821 100644 --- a/libs/libgraph/Makefile +++ b/libs/libgraph/Makefile @@ -32,19 +32,24 @@ CFLAGS := -fPIC -I../include -I../../libc/include build: $(OBJECT_NAME) $(OBJECT_NAME): $(OBJ) + $(info Linking $@) $(CC) -nostdlib -shared -fPIC -Wl,-soname,$(SO_NAME) $(SYSROOT) $(OBJ) -o $(OUTPUT_DIR)$@ $(OBJDUMP) -d $(OUTPUT_DIR)$@ > file_dump.map %.o: %.c + $(info Compiling $<) $(CC) $(CFLAGS) -std=c17 -c $< -o $@ %.o: %.cpp + $(info Compiling $<) $(CC) $(CFLAGS) -std=c++20 -c $< -o $@ %.o: %.S + $(info Compiling $<) $(AS) -c $< -o $@ %.o: %.asm + $(info Compiling $<) $(NASM) $< -f $(ASM_ARCH) -o $@ clean: diff --git a/libs/libinit/Makefile b/libs/libinit/Makefile index 6382ff0..cc69eec 100644 --- a/libs/libinit/Makefile +++ b/libs/libinit/Makefile @@ -32,19 +32,24 @@ CFLAGS := -fPIC -I../include -I../../libc/include build: $(OBJECT_NAME) $(OBJECT_NAME): $(OBJ) + $(info Linking $@) $(CC) -nostdlib -shared -fPIC -Wl,-soname,$(SO_NAME) $(SYSROOT) $(OBJ) -o $(OUTPUT_DIR)$@ $(OBJDUMP) -d $(OUTPUT_DIR)$@ > file_dump.map %.o: %.c + $(info Compiling $<) $(CC) $(CFLAGS) -std=c17 -c $< -o $@ %.o: %.cpp + $(info Compiling $<) $(CC) $(CFLAGS) -std=c++20 -c $< -o $@ %.o: %.S + $(info Compiling $<) $(AS) -c $< -o $@ %.o: %.asm + $(info Compiling $<) $(NASM) $< -f $(ASM_ARCH) -o $@ clean: diff --git a/libs/libssp/Makefile b/libs/libssp/Makefile index 75d69c6..8dacb7b 100644 --- a/libs/libssp/Makefile +++ b/libs/libssp/Makefile @@ -27,16 +27,20 @@ CFLAGS := -fPIC -I../include -I../../libc/include build: $(OBJECT_NAME) $(OBJECT_NAME): $(OBJ) + $(info Linking $@) $(AR) rcs $(OUTPUT_DIR)$@ $(OBJ) $(OBJDUMP) -d $(OUTPUT_DIR)$@ > file_dump.map %.o: %.c + $(info Compiling $<) $(CC) $(CFLAGS) -std=c17 -c $< -o $@ %.o: %.cpp + $(info Compiling $<) $(CC) $(CFLAGS) -std=c++20 -c $< -o $@ %.o: %.asm + $(info Compiling $<) $(NASM) $< -f $(ASM_ARCH) -o $@ clean: diff --git a/libs/libsys/Makefile b/libs/libsys/Makefile index bac6051..76b41da 100644 --- a/libs/libsys/Makefile +++ b/libs/libsys/Makefile @@ -32,19 +32,24 @@ CFLAGS := -fPIC -I../include -I../../libc/include build: $(OBJECT_NAME) $(OBJECT_NAME): $(OBJ) + $(info Linking $@) $(CC) -nostdlib -shared -fPIC -Wl,-soname,$(SO_NAME) $(SYSROOT) $(OBJ) -o $(OUTPUT_DIR)$@ $(OBJDUMP) -d $(OUTPUT_DIR)$@ > file_dump.map %.o: %.c + $(info Compiling $<) $(CC) $(CFLAGS) -std=c17 -c $< -o $@ %.o: %.cpp + $(info Compiling $<) $(CC) $(CFLAGS) -std=c++20 -c $< -o $@ %.o: %.S + $(info Compiling $<) $(AS) -c $< -o $@ %.o: %.asm + $(info Compiling $<) $(NASM) $< -f $(ASM_ARCH) -o $@ clean: