diff options
author | Aaron Ball <nullspoon@oper.io> | 2019-12-29 20:40:54 -0700 |
---|---|---|
committer | Aaron Ball <nullspoon@oper.io> | 2019-12-29 20:40:54 -0700 |
commit | 4435ffc2d9c45f1b792b0eadd6e7d3a7fff8406e (patch) | |
tree | 3ba32bcfeb8ab1131647f8a72e002d72771cefae | |
parent | 303564d281e2bb476a5813eca4fc478874013c7c (diff) | |
download | terminus-4435ffc2d9c45f1b792b0eadd6e7d3a7fff8406e.tar.gz terminus-4435ffc2d9c45f1b792b0eadd6e7d3a7fff8406e.tar.xz |
Update Makefile with ccopts and fix debug
CCOPTS now turn on all warnings, optimize, and set standard to gnu99.
-rw-r--r-- | Makefile | 5 | ||||
-rw-r--r-- | src/main.c | 2 |
2 files changed, 4 insertions, 3 deletions
@@ -1,7 +1,8 @@ out = terminus +CCOPTS = --std=gnu99 -Wall -O2 all: - cc src/main.c -o $(out) + cc $(DBG) $(CCOPTS) src/main.c -o $(out) debug: - make all dbg="-g" + make all DBG="-g" @@ -72,7 +72,7 @@ int write_lastlogin(char* path) { if(f == NULL) { return 1; } // Write the current time - fprintf(f, "%d", time(NULL)); + fprintf(f, "%d", (int) time(NULL)); fclose(f); return 0; |