Compare commits
2 commits
1edc5adc2a
...
e24b2f7904
Author | SHA1 | Date | |
---|---|---|---|
|
e24b2f7904 | ||
|
5e7deadb65 |
1 changed files with 7 additions and 2 deletions
7
Makefile
7
Makefile
|
@ -4,6 +4,10 @@ CC = gcc
|
|||
CFLAGS = -Wall -Wextra -Werror -Wno-unused-parameter
|
||||
CFLAGS += -Wno-unused-variable -Wno-unused-function
|
||||
CFLAGS += -Wno-unused-but-set-variable -Wno-unused-value -Wno-unused-label
|
||||
CFLAGS += -Wno-unused-result -Wno-unused-const-variable
|
||||
CFLAGS += -fno-exceptions -fno-asynchronous-unwind-tables -fno-ident
|
||||
CFLAGS += -fno-unwind-tables -fno-stack-protector -fno-plt -fno-pic
|
||||
CFLAGS += -O3 -std=c99 -march=native -mtune=native -fomit-frame-pointer
|
||||
|
||||
C_SOURCES = $(wildcard *.c)
|
||||
C_HEADERS = $(wildcard *.h)
|
||||
|
@ -19,9 +23,10 @@ all: $(OBJECTS)
|
|||
%.s: %.c $(C_HEADERS)
|
||||
@echo "CC $<"
|
||||
@$(CC) $(CFLAGS) -S -masm=intel $<
|
||||
wc -l $@
|
||||
|
||||
clean:
|
||||
rm -f $(OBJECTS)
|
||||
rm -f $(OBJECTS) $(ASMS)
|
||||
|
||||
asm: $(ASMS)
|
||||
|
||||
|
|
Loading…
Reference in a new issue