mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Use -flto for all tools
This commit is contained in:
parent
91fa3dd9b9
commit
1ba73f225c
@ -1,7 +1,7 @@
|
|||||||
.PHONY: all clean
|
.PHONY: all clean
|
||||||
|
|
||||||
CC := gcc
|
CC := gcc
|
||||||
CFLAGS := -O3 -std=c11 -Wall -Wextra -pedantic -Wno-missing-field-initializers
|
CFLAGS := -O3 -flto -std=c11 -Wall -Wextra -pedantic -Wno-missing-field-initializers
|
||||||
|
|
||||||
tools := \
|
tools := \
|
||||||
bpp2png \
|
bpp2png \
|
||||||
@ -27,11 +27,10 @@ pokemon_animation_graphics: common.h
|
|||||||
scan_includes: common.h
|
scan_includes: common.h
|
||||||
stadium: common.h
|
stadium: common.h
|
||||||
|
|
||||||
bpp2png: CFLAGS += -flto
|
|
||||||
bpp2png: bpp2png.c lodepng/lodepng.c common.h lodepng/lodepng.h
|
bpp2png: bpp2png.c lodepng/lodepng.c common.h lodepng/lodepng.h
|
||||||
$(CC) $(CFLAGS) -o $@ bpp2png.c lodepng/lodepng.c
|
$(CC) $(CFLAGS) -o $@ bpp2png.c lodepng/lodepng.c
|
||||||
|
|
||||||
lzcomp: CFLAGS += -flto -Wno-strict-overflow -Wno-sign-compare
|
lzcomp: CFLAGS += -Wno-strict-overflow -Wno-sign-compare
|
||||||
lzcomp: $(wildcard lz/*.c) $(wildcard lz/*.h)
|
lzcomp: $(wildcard lz/*.c) $(wildcard lz/*.h)
|
||||||
$(CC) $(CFLAGS) -o $@ lz/*.c
|
$(CC) $(CFLAGS) -o $@ lz/*.c
|
||||||
|
|
||||||
|
@ -5,6 +5,8 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include <stddef.h>
|
||||||
|
#include <stdnoreturn.h>
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user