4 # Enforce C11 ISO standard for now
5 CFLAGS
= -std
=c11
-g
-Wall
8 .PHONY
: default
all clean
13 OBJECTS
= $(patsubst %.c
, %.o
, $(wildcard *.c
))
14 HEADERS
= $(wildcard *.h
)
17 $(CC
) $(CFLAGS
) -c
$< -o
$@
19 .PRECIOUS
: $(TARGET
) $(OBJECTS
)
22 $(CC
) $(OBJECTS
) $(LDFLAGS
) $(LIBS
) -o
$@
25 -rm -f
$(TARGET
) $(OBJECTS
)
27 disassemble
: $(TARGET
)
31 objdump
-t
$< |
sort | less