Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[m0] stricter CFLAGS

  • Loading branch information...
commit 818a18e11a3d069b5ea403982b5f1afc4d1ad77c 1 parent 8ef7d07
@gerdr gerdr authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/m0/c/Makefile
View
6 src/m0/c/Makefile
@@ -1,10 +1,12 @@
+CFLAGS := -std=c99 -pedantic -Wall -Wextra
+
all: m0 m0-debug
m0 : m0.h interp.c mob.c ops.c
- $(CC) -O3 -W -Wall -g -o m0 mob.c interp.c ops.c
+ $(CC) $(CFLAGS) -O3 -g -o m0 mob.c interp.c ops.c
m0-debug : m0.h interp.c mob.c ops.c
- $(CC) -O0 -W -Wall -g -o m0-debug mob.c interp.c ops.c
+ $(CC) $(CFLAGS) -O0 -g -o m0-debug mob.c interp.c ops.c
clean:
rm -f *.o m0 m0-debug
Please sign in to comment.
Something went wrong with that request. Please try again.