aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRatakor <ratakor@disroot.org>2023-05-22 15:26:13 +0200
committerRatakor <ratakor@disroot.org>2023-05-22 15:26:13 +0200
commitc0b419027f4e9e985b856a4aa0ec23522864a4c0 (patch)
tree94e5f0f0250901b8e09b5a690d569a311de4270d
parenta786f07d9430981c420214afce691d5515f98e99 (diff)
Fix base of make.snippets
-rw-r--r--snippets/make.snippets14
1 files changed, 3 insertions, 11 deletions
diff --git a/snippets/make.snippets b/snippets/make.snippets
index ddfe6b1..4f3cab2 100644
--- a/snippets/make.snippets
+++ b/snippets/make.snippets
@@ -1,13 +1,8 @@
# (need rework)
snippet base
- PREFIX = /usr/local
- CC = cc
- CFLAGS = -g -Wall -W -ansi -Werror
- DEBUG_CFLAGS = -g -Wall -W -ansi -pedantic -Werror -Wfloat-equal\
- -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align\
- -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes\
- -Wmissing-declarations -Wnested-externs -Wunreachable-code\
- -Wundef -Wshadow
+ PREFIX ?= /usr/local
+ CC ?= cc
+ CFLAGS += -std=c99 -pedantic -Wall -O2 -g -W
SRC = ${1:src}.c
OBJ = \${SRC:.c=.o}
@@ -20,9 +15,6 @@ snippet base
$1: \${OBJ}
\${CC} -o \$@ \${OBJ} \${LDLFLAGS}
- debug:
- CFLAGS = \${DEBUG_CFLAGS}
-
clean:
rm -f *.o