Skip to content

Commit 5d71cd5

Browse files
committed
chip 8 source files
Chip 8 Source files, including Chip 8 implementation, makefile, and Main function.
0 parents commit 5d71cd5

File tree

6 files changed

+771
-0
lines changed

6 files changed

+771
-0
lines changed

Makefile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
CC=gcc
2+
CFLAGS=-std=c99 -c -Wall -I/System/Library/Frameworks/GLUT.framework/Headers
3+
LDFLAGS=-framework OpenGL -framework GLUT
4+
SOURCES=chip8.c emulator.c
5+
OBJECTS=$(SOURCES:.c=.o)
6+
EXECUTABLE=emulator
7+
8+
clean:
9+
rm -rf*o emulator
10+
11+
all: $(SOURCES) $(EXECUTABLE)
12+
13+
$(EXECUTABLE): $(OBJECTS)
14+
$(CC) $(LDFLAGS) $(OBJECTS) -o $@
15+
16+
.c.o:
17+
$(CC) $(CFLAGS) $< -o $@

PONG.bin

246 Bytes
Binary file not shown.

TETRIS.bin

494 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)