Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CC=gcc
CFLAGS=-I/usr/include/SDL2
CFLAGS=-I/usr/include/SDL2 -Wall -Werror -std=gnu99
LDFLAGS=-lSDL2 -lSDL2_image

all: icsim controls
Expand All @@ -8,10 +8,10 @@ icsim: icsim.o lib.o
$(CC) $(CFLAGS) -o icsim icsim.c lib.o $(LDFLAGS)

controls: controls.o
$(CC) $(CFLAGS) -o controls controls.c $(LDFLAGS)
$(CC) $(CFLAGS) -o controls controls.c $(LDFLAGS) -lpthread

lib.o:
$(CC) lib.c
$(CC) -c lib.c

clean:
rm -rf icsim controls icsim.o controls.o
rm -rf icsim controls icsim.o controls.o lib.o
8 changes: 8 additions & 0 deletions config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#ifndef CONFIG_H
#define CONFIG_H

#ifndef DISABLE_SDL
#define DISABLE_SDL 0
#endif

#endif // CONFIG_H
Binary file removed controls
Binary file not shown.
Loading