specify c99

This commit is contained in:
NunoSempere 2024-03-24 07:54:33 -04:00
parent 0c282697bc
commit c95ed11bc3
2 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,8 @@
# To do # To do
- [ ] Settle on a C standard (C11?), and use safer string handling functions provided by it. - [ ] Settle on a C standard (C11?), and use safer string handling functions provided by it.
- The thing is, I kinda feel attached to C89-C99
- [ ] Consider
- See make lint for purported insecurities - See make lint for purported insecurities
- [ ] Document creating new applications, e.g., as in [Asana for Linux](https://git.nunosempere.com/NunoSempere/asana-for-linux) - [ ] Document creating new applications, e.g., as in [Asana for Linux](https://git.nunosempere.com/NunoSempere/asana-for-linux)
- [ ] This time, use something other than Whatsapp as an example syslink. - [ ] This time, use something other than Whatsapp as an example syslink.

View File

@ -4,6 +4,7 @@ WARNINGS=-Wall
OPTIMIZED_SOME=-O3 OPTIMIZED_SOME=-O3
OPTIMIZED_MORE=-Ofast -march=native -funit-at-a-time -flto # binary will not be compatible with other computers, but may be much faster OPTIMIZED_MORE=-Ofast -march=native -funit-at-a-time -flto # binary will not be compatible with other computers, but may be much faster
DEBUG= # -g DEBUG= # -g
STD=-std=c99 # maybe consider moving to c11 and using safer string handling
# Dependencies # Dependencies
DEPS='webkit2gtk-4.1' DEPS='webkit2gtk-4.1'
@ -29,7 +30,7 @@ USER_CACHE_DIR=/home/`whoami`/.cache/rosenrot
RUNTIME_FILES_DIR=/opt/rosenrot/ RUNTIME_FILES_DIR=/opt/rosenrot/
build: $(SRC) $(PLUGINS) $(CONFIG) constants user_cache build: $(SRC) $(PLUGINS) $(CONFIG) constants user_cache
$(CC) $(WARNINGS) $(OPTIMIZED_MORE) $(DEBUG) $(INCS) $(PLUGINS) $(SRC) -o rosenrot $(LIBS) $(ADBLOCK) $(CC) $(STD) $(WARNINGS) $(OPTIMIZED_MORE) $(DEBUG) $(INCS) $(PLUGINS) $(SRC) -o rosenrot $(LIBS) $(ADBLOCK)
constants: constants:
@echo "# Computing constants" @echo "# Computing constants"