fix makefile on reelease mode
This commit is contained in:
parent
51d91042da
commit
d566f26d90
1 changed files with 6 additions and 6 deletions
12
Makefile
12
Makefile
|
@ -21,19 +21,19 @@ PDF_DIR = report
|
||||||
%.o: src/%.c
|
%.o: src/%.c
|
||||||
$(CC) -c $< -o $@ $(CFLAGS)
|
$(CC) -c $< -o $@ $(CFLAGS)
|
||||||
|
|
||||||
compilation: $(OBJETS)
|
release: CFLAGS += -O3
|
||||||
$(CC) -o $(EXE)$(EXE_EXT) $(OBJETS) $(LDFLAGS)
|
release: compilation
|
||||||
|
|
||||||
main: CFLAGS += -O3
|
|
||||||
main: compilation
|
|
||||||
|
|
||||||
debug: CFLAGS += -Wall -Wextra -Wshadow -Wcast-align -Wstrict-prototypes
|
debug: CFLAGS += -Wall -Wextra -Wshadow -Wcast-align -Wstrict-prototypes
|
||||||
debug: CFLAGS += -fanalyzer -fsanitize=undefined -g -Og
|
debug: CFLAGS += -fanalyzer -fsanitize=undefined -g -Og
|
||||||
debug: LDFLAGS += -fsanitize=undefined
|
debug: LDFLAGS += -fsanitize=undefined
|
||||||
debug: compilation
|
debug: compilation
|
||||||
|
|
||||||
|
compilation: $(OBJETS)
|
||||||
|
$(CC) -o $(EXE)$(EXE_EXT) $(OBJETS) $(LDFLAGS)
|
||||||
|
|
||||||
all:
|
all:
|
||||||
main
|
release
|
||||||
|
|
||||||
pdf-make:
|
pdf-make:
|
||||||
cd report && \
|
cd report && \
|
||||||
|
|
Reference in a new issue