From 2d30c37b02f7cc1edbd1d8bc7808bbb2243b124c Mon Sep 17 00:00:00 2001 From: Manuel Palenzuela Date: Mon, 19 Jul 2021 11:58:36 +0100 Subject: Initial commit --- .gitignore | 3 +++ Makefile | 13 +++++++++++++ emulator.c | 0 emulator.h | 0 main.c | 12 ++++++++++++ 5 files changed, 28 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 emulator.c create mode 100644 emulator.h create mode 100644 main.c diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6826944 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +chip8_emulator +CHIP8_Emulator.* +*.o diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1346c94 --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +CC=cc +CFLAGS=-g -Wall -I. + +all: chip8_emulator + +%.o: %.c %.h + $(CC) $(CFLAGS) -c $^ + +chip8_emulator: emulator.o main.c + $(CC) $(CFLAGS) -o $@ $^ + +clean: chip8_emulator + rm *.o $@ diff --git a/emulator.c b/emulator.c new file mode 100644 index 0000000..e69de29 diff --git a/emulator.h b/emulator.h new file mode 100644 index 0000000..e69de29 diff --git a/main.c b/main.c new file mode 100644 index 0000000..8f61750 --- /dev/null +++ b/main.c @@ -0,0 +1,12 @@ +#include +#include "emulator.h" + +int main(int argc, char** argv) +{ + (void) argc; + (void) argv; + + printf("Hello brother!\n"); + + return 0; +} -- cgit 1.4.1