Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,5 @@ check-format: $(FORMAT_SH)
format: $(FORMAT_SH)
@$(FORMAT_SH) $(ARGS) -i $(ALL_SRC)

debug: $(DEBUG_SH)
DEBUG=1 make all
@./$(DEBUG_SH) $(NAME_BIN) $(ARGS)
debug: $(DEBUG_SH) $(NAME_BIN)
Comment thread
iamantoinev marked this conversation as resolved.
@./$(DEBUG_SH) $(ARGS)
11 changes: 2 additions & 9 deletions config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,8 @@ RM = rm -rf
AFLAGS = -f elf32

MANDATORY_CFLAGS = -fno-builtin -fno-stack-protector -nostdlib -nodefaultlibs
CFLAGS_COMMON = -std=gnu11 -ffreestanding -Wall -Wextra -Wshadow -mno-sse -mno-mmx -mno-80387
CFLAGS_RELEASE = -O2
CFLAGS_DEBUG = -O0 -g

ifeq ($(DEBUG), 1)
CFLAGS = $(CFLAGS_COMMON) $(CFLAGS_DEBUG) $(MANDATORY_CFLAGS)
else
CFLAGS = $(CFLAGS_COMMON) $(CFLAGS_RELEASE) $(MANDATORY_CFLAGS)
endif
CFLAGS_COMMON = -std=gnu11 -ffreestanding -Wall -Wextra -Wshadow -mno-sse -mno-mmx -mno-80387 -O0 -g
CFLAGS = $(CFLAGS_COMMON) $(MANDATORY_CFLAGS)

CPPFLAGS_COMMON =
MANDATORY_CPPFLAGS = -fno-exceptions -fno-rtti
Expand Down