summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouie Shprung <lshprung@scu.edu>2022-12-10 16:59:04 -0800
committerLouie Shprung <lshprung@scu.edu>2022-12-10 16:59:04 -0800
commit603af77207d98b607de80bb734e4123bb9279786 (patch)
tree828196e85cc6607d83e8cb213715ec8915ddc272
parentcdd4d3bb1cb896461950dc05e63917458e983b80 (diff)
Move include/ into src/
-rw-r--r--src/Makefile.am2
-rw-r--r--src/Makefile.in2
-rw-r--r--src/body.c2
-rw-r--r--src/draw.c2
-rw-r--r--src/include/body.h (renamed from include/body.h)0
5 files changed, 4 insertions, 4 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 262aff6..ebbd287 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,3 +1,3 @@
bin_PROGRAMS = simple-snake
-simple_snake_SOURCES = body.c draw.c body.h
+simple_snake_SOURCES = body.c draw.c
simple_snake_LDADD = -lncurses -lm
diff --git a/src/Makefile.in b/src/Makefile.in
index a2b78fd..a5ae1f3 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -246,7 +246,7 @@ target_alias = @target_alias@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
-simple_snake_SOURCES = body.c draw.c body.h
+simple_snake_SOURCES = body.c draw.c
simple_snake_LDADD = -lncurses -lm
all: all-am
diff --git a/src/body.c b/src/body.c
index bfee083..ad06411 100644
--- a/src/body.c
+++ b/src/body.c
@@ -2,7 +2,7 @@
#include <stdbool.h>
#include <stdlib.h>
-#include "../include/body.h"
+#include "include/body.h"
typedef struct node{
int x;
diff --git a/src/draw.c b/src/draw.c
index 4926f04..55f9013 100644
--- a/src/draw.c
+++ b/src/draw.c
@@ -10,7 +10,7 @@
#include <time.h>
#include <unistd.h>
-#include "../include/body.h"
+#include "include/body.h"
#define START_SIZE 4
//TODO consider having speed be affected by window size
diff --git a/include/body.h b/src/include/body.h
index 29241bf..29241bf 100644
--- a/include/body.h
+++ b/src/include/body.h