Browse Source

Added compiler optimization flags, created .gitignore

Fredrik Haikarainen 10 years ago
parent
commit
056703f4d4
2 changed files with 2 additions and 1 deletions
  1. 1
    0
      .gitignore
  2. 1
    1
      Makefile

+ 1
- 0
.gitignore View File

@@ -0,0 +1 @@
1
+light

+ 1
- 1
Makefile View File

@@ -1,5 +1,5 @@
1 1
 CC=gcc
2
-CFLAGS=-std=c89 -pedantic -Wall -I"./include"
2
+CFLAGS=-std=c89 -O2 -pedantic -Wall -I"./include"
3 3
 
4 4
 all:
5 5
 	$(CC) $(CFLAGS) -g -o light src/helpers.c src/light.c src/main.c