Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Autoselect compiler.

git-svn-id: svn+ssh://jay/var/svn/wolf/trunk@95 32837ae5-38f0-4cfd-8401-3ff76d8497c4
  • Loading branch information...
commit aeaf84951823da4f6e6c2234eb664647891b730d 1 parent 8c57faa
paul authored
Showing with 8 additions and 4 deletions.
  1. +8 −4 Makefile
View
12 Makefile
@@ -1,10 +1,14 @@
PROGS=ewolf3d
-#CC = gcc -m32
-CC = arm-unknown-eabi-gcc
-#CC=/opt/intel/compiler60/ia32/bin/icc
-#CFLAGS = -g -Wall
+ifeq ($(PROGS),ewolf3d)
+CC = arm-unknown-eabi-gcc
CFLAGS = -g -Wall -fno-common -DLUMINARY -mthumb -march=armv7-m -O2
+else
+CC = gcc -m32
+CFLAGS = -g -Wall
+endif
+
+#CC=/opt/intel/compiler60/ia32/bin/icc
#CFLAGS = -Wall -O6 -fomit-frame-pointer -ffast-math -funroll-loops -march=pentiumpro
#CFLAGS = -g -Wall -W -pedantic -std=c99
#CFLAGS = -Os -Wall -pedantic
Please sign in to comment.
Something went wrong with that request. Please try again.