mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
Tweaked CFLAGS in each makefile
This commit is contained in:
9
makefile
9
makefile
@@ -1,7 +1,8 @@
|
|||||||
#compiler settings
|
#compiler settings reference
|
||||||
CC=gcc
|
#CC=gcc
|
||||||
CFLAGS+=-std=c17 -pedantic -Werror
|
#CFLAGS+=-std=c17 -g -Wall -Werror -Wno-unused-parameter -Wno-unused-function -Wno-unused-variable -Wformat=2
|
||||||
LIBS+=-lm
|
#LIBS+=-lm
|
||||||
|
#LDFLAGS+=
|
||||||
|
|
||||||
#directories
|
#directories
|
||||||
export TOY_SOURCEDIR=source
|
export TOY_SOURCEDIR=source
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#compiler settings
|
#compiler settings
|
||||||
CC=gcc
|
CC=gcc
|
||||||
CFLAGS+=-g -Wall -Werror -Wno-unused-parameter -Wno-unused-function -Wno-unused-variable
|
CFLAGS+=-std=c17 -g -Wall -Werror -Wno-unused-parameter -Wno-unused-function -Wno-unused-variable -Wformat=2
|
||||||
LIBS+=-lm -lToy
|
LIBS+=-lm -lToy
|
||||||
LDFLAGS+=-Wl,-rpath,'$$ORIGIN'
|
LDFLAGS+=-Wl,-rpath,'$$ORIGIN'
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#compiler settings
|
#compiler settings
|
||||||
CC=gcc
|
CC=gcc
|
||||||
CFLAGS+=-g -Wall -Werror -Wno-unused-parameter -Wno-unused-function -Wno-unused-variable
|
CFLAGS+=-std=c17 -g -Wall -Werror -Wno-unused-parameter -Wno-unused-function -Wno-unused-variable -Wformat=2
|
||||||
LIBS+=-lm
|
LIBS+=-lm
|
||||||
LDFLAGS+=
|
LDFLAGS+=
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,17 @@
|
|||||||
#compiler settings
|
#compiler settings
|
||||||
CC=gcc
|
CC=gcc
|
||||||
CFLAGS=-g -Wall -Werror -Wno-unused-parameter -Wno-unused-function -Wno-unused-variable
|
CFLAGS+=-std=c17 -g -Wall -Werror -Wno-unused-parameter -Wno-unused-function -Wno-unused-variable -Wformat=2
|
||||||
LIBS=-lm
|
LIBS+=-lm
|
||||||
|
LDFLAGS+=
|
||||||
|
|
||||||
ifeq ($(shell uname),Linux)
|
ifeq ($(shell uname),Linux)
|
||||||
LDFLAG=-Wl,--gc-sections
|
LDFLAGS=-Wl,--gc-sections
|
||||||
else ifeq ($(OS),Windows_NT)
|
else ifeq ($(OS),Windows_NT)
|
||||||
LDFLAG=-Wl,--gc-sections
|
LDFLAGS=-Wl,--gc-sections
|
||||||
else ifeq ($(shell uname),Darwin)
|
else ifeq ($(shell uname),Darwin)
|
||||||
LDFLAG=-Wl,-dead_strip
|
LDFLAGS=-Wl,-dead_strip
|
||||||
else
|
else
|
||||||
@echo "LDFLAG set failed - what platform is this?"
|
@echo "LDFLAGS set failed - what platform is this?"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
#directories
|
#directories
|
||||||
|
|||||||
Reference in New Issue
Block a user