Преглед на файлове

Move headers to include

Streetwalrus Einstein преди 10 години
родител
ревизия
37cb3a872f
променени са 9 файла, в които са добавени 11 реда и са изтрити 11 реда
  1. 1 1
      Makefile
  2. 0 0
      include/graphics.h
  3. 0 0
      include/main.h
  4. 0 0
      include/map.h
  5. 0 0
      include/timers.h
  6. 1 1
      src/graphics.c
  7. 4 4
      src/main.c
  8. 4 4
      src/map.c
  9. 1 1
      src/timers.c

+ 1 - 1
Makefile

@@ -3,7 +3,7 @@ NAME = Pokespire
 DEBUG = FALSE
 
 CC = nspire-gcc
-CFLAGS = -Wall -W -marm
+CFLAGS = -Wall -W -marm -I include -I art
 
 LD = nspire-ld
 LDFLAGS =

+ 0 - 0
src/graphics.h → include/graphics.h


+ 0 - 0
src/main.h → include/main.h


+ 0 - 0
src/map.h → include/map.h


+ 0 - 0
src/timers.h → include/timers.h


+ 1 - 1
src/graphics.c

@@ -1,5 +1,5 @@
 #include <os.h>
-#include "graphics.h"
+#include <graphics.h>
 
 #define LCD_CONTROLLER 0xC0000000
 volatile unsigned *lcd_base = (unsigned *) (LCD_CONTROLLER + 0x10);

+ 4 - 4
src/main.c

@@ -1,8 +1,8 @@
 #include <os.h>
-#include "timers.h"
-#include "graphics.h"
-#include "map.h"
-#include "main.h"
+#include <timers.h>
+#include <graphics.h>
+#include <map.h>
+#include <main.h>
 
 int main(int argc, char *argv[])
 {

+ 4 - 4
src/map.c

@@ -1,8 +1,8 @@
 #include <os.h>
-#include "timers.h"
-#include "graphics.h"
-#include "../art/sprites.h"
-#include "map.h"
+#include <timers.h>
+#include <graphics.h>
+#include <sprites.h>
+#include <map.h>
 
 static void map_walk_speed_load(unsigned time);
 static unsigned map_walk_speed_read(unsigned time, unsigned div);

+ 1 - 1
src/timers.c

@@ -1,5 +1,5 @@
 #include <os.h>
-#include "timers.h"
+#include <timers.h>
 
 #define TIMER 0x900D0000
 unsigned timer_ctl_bkp[2], timer_load_bkp[2];