Skip to content

Commit

Permalink
Enable c99 mode
Browse files Browse the repository at this point in the history
  • Loading branch information
arnav-t committed Dec 2, 2018
1 parent 0697c9b commit 946cc54
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
CC = gcc
LIBS = -lX11
FLAGS = -std=c99

xscreencast: xscreencast.o stb_image_write.h.gch HTTPServer.h.gch
$(CC) xscreencast.o -o xscreencast $(LIBS)
$(CC) xscreencast.o -o xscreencast $(FLAGS) $(LIBS)

xscreencast.o: xscreencast.c stb_image_write.h.gch HTTPServer.h.gch
$(CC) -c xscreencast.c $(LIBS)
$(CC) -c xscreencast.c $(FLAGS) $(LIBS)

HTTPServer.h.gch: HTTPServer.h
$(CC) -c HTTPServer.h $(LIBS)
$(CC) -c HTTPServer.h $(FLAGS) $(LIBS)

stb_image_write.h.gch: stb_image_write.h
$(CC) -c stb_image_write.h $(LIBS)
$(CC) -c stb_image_write.h $(FLAGS) $(LIBS)

clean:
rm *.o *.h.gch
Expand Down

0 comments on commit 946cc54

Please sign in to comment.