aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2024-10-21 12:52:46 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2024-10-21 12:52:46 +0200
commitc616e09df8783a4f850f38f0b79b5029e781f932 (patch)
tree4350955f05cb699ca8229d406b7b9669ac0b06e3
parentb42d245a5c408e487f132a7ee84c9f4627c5b889 (diff)
Add compile_flags
-rwxr-xr-xbuild.sh8
-rw-r--r--compile_flags.txt5
2 files changed, 9 insertions, 4 deletions
diff --git a/build.sh b/build.sh
index bfd8c19..39e3f42 100755
--- a/build.sh
+++ b/build.sh
@@ -1,6 +1,6 @@
#!/bin/sh
set -x
-gcc -g -Wall -pedantic -std=c99 -o chatty client.c common.c
-gcc -g -Wall -pedantic -std=c99 -o server server.c common.c
-gcc -g -Wall -pedantic -std=c99 -o send send.c common.c
-gcc -g -Wall -pedantic -std=c99 -o recv recv.c common.c
+gcc -g -Wall -pedantic -std=c99 -o chatty client.c
+gcc -g -Wall -pedantic -std=c99 -o server server.c
+gcc -g -Wall -pedantic -std=c99 -o send send.c
+gcc -g -Wall -pedantic -std=c99 -o recv recv.c
diff --git a/compile_flags.txt b/compile_flags.txt
new file mode 100644
index 0000000..1a62790
--- /dev/null
+++ b/compile_flags.txt
@@ -0,0 +1,5 @@
+-Wall
+-Werror
+-pedantic
+-std=c99
+-O3