Stop silencing errors
This commit is contained in:
parent
a47d3fe0cf
commit
1be2fa0339
1 changed files with 4 additions and 16 deletions
20
Makefile
20
Makefile
|
|
@ -1,12 +1,5 @@
|
||||||
.SILENT:
|
CC ?= gcc
|
||||||
|
CFLAGS := -Wall -Wextra -ggdb
|
||||||
CC := gcc
|
|
||||||
CFLAGS := -Wall -Wextra -O2
|
|
||||||
|
|
||||||
# Silence some errors/warnings for now
|
|
||||||
CFLAGS += -Wno-implicit-fallthrough
|
|
||||||
CFLAGS += -Wno-strict-aliasing
|
|
||||||
CFLAGS += -Wno-uninitialized
|
|
||||||
|
|
||||||
SRC := $(wildcard *.c)
|
SRC := $(wildcard *.c)
|
||||||
OBJ := $(SRC:.c=.o)
|
OBJ := $(SRC:.c=.o)
|
||||||
|
|
@ -25,17 +18,12 @@ SUBDIRS += socket
|
||||||
SUBDIRS += sqlite
|
SUBDIRS += sqlite
|
||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
@echo CC $@
|
$(CC) $(CFLAGS) -c -o $@ $<
|
||||||
@$(CC) $(CFLAGS) -c -o $@ $<
|
|
||||||
|
|
||||||
%.elf: %.o
|
%.elf: %.o
|
||||||
@echo LD $@
|
$(CC) $(LIBS) -o $@ $<
|
||||||
@$(CC) $(LIBS) -o $@ $<
|
|
||||||
|
|
||||||
all: $(ELF)
|
all: $(ELF)
|
||||||
# @for dir in $(SUBDIRS); do \
|
|
||||||
# $(MAKE) -C $$dir; \
|
|
||||||
# done
|
|
||||||
|
|
||||||
sub:
|
sub:
|
||||||
@-find . -mindepth 1 -maxdepth 1 -type d -exec make --no-print-directory -C {} \;
|
@-find . -mindepth 1 -maxdepth 1 -type d -exec make --no-print-directory -C {} \;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue