Skip to content

Commit ec946ca

Browse files
committed
added flag argument to makefile for C tests
1 parent 0af32c0 commit ec946ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ $(OUT_DIR)start.o: kernel/start.s
3636
# Pattern rule for any .c → build/*.o
3737
$(OUT_DIR)%.o: %.c
3838
@mkdir -p $(OUT_DIR)
39-
$(CC) $(CFLAGS) -c $< -o $@
39+
$(CC) $(CFLAGS) -c $< -o $@ $(KFLAG)
4040

4141
# Link everything
4242
$(OUT_DIR)kernel.elf: $(OUT_DIR)start.o $(OBJS) kernel.ld

0 commit comments

Comments
 (0)