shithub: m8c

Download patch

ref: 6b30516b0386fa917de46fb7077a39ff2cd38be2
parent: 5a0b6dac22b3f184890201c6c3cc8387b12b70f4
author: Jonne Kokkonen <jonne.kokkonen@gmail.com>
date: Sat May 1 17:06:16 EDT 2021

remove debug settings from makefile

--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@
 INCLUDES = -lserialport
 
 #Set any compiler flags you want to use (e.g. -I/usr/include/somefolder `pkg-config --cflags gtk+-3.0` ), or leave blank
-CFLAGS = `sdl2-config --libs --cflags` -march=native -Wall  -pipe -I. -g
+CFLAGS = `sdl2-config --libs --cflags` -march=native -Wall -O2 -pipe -I.
 
 #Set the compiler you are using ( gcc for C or g++ for C++ )
 CC = gcc
--- a/main.c
+++ b/main.c
@@ -1,13 +1,13 @@
-#include <stdio.h>
 #include <SDL2/SDL.h>
 #include <libserialport.h>
 #include <signal.h>
+#include <stdio.h>
 #include <unistd.h>
 
-#include "serial.h"
 #include "command.h"
 #include "input.h"
 #include "render.h"
+#include "serial.h"
 #include "slip.h"
 #include "write.h"
 
@@ -109,7 +109,6 @@
       }
       break;
     }
-
   }
 
   // exit, clean up
--