summaryrefslogtreecommitdiff
blob: d8793a6aef6efb2dd8bfb9861992e721a14d965b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Use implicit rules to build write-highscores so we dont have to worry
about CC/CFLAGS/LDFLAGS/etc...

Include stdlib.h to get exit() prototype

--- write-highscores.c
+++ write-highscores.c
@@ -25,6 +25,7 @@
 #include <sys/stat.h>
 #include <unistd.h>
 #include <fcntl.h>
+#include <stdlib.h>
 
 #define BUFFER_SIZE 1024
 
--- Makefile
+++ Makefile
@@ -4,9 +4,6 @@
 
 all: write-highscores html/wheel.png
 
-write-highscores: write-highscores.c
-	gcc -s -o write-highscores write-highscores.c
-
 html/wheel.png:
 	./makehtml