Permalink
Browse files

Autoselect compiler.

git-svn-id: svn+ssh://jay/var/svn/wolf/trunk@95 32837ae5-38f0-4cfd-8401-3ff76d8497c4
  • Loading branch information...
1 parent 8c57faa commit aeaf84951823da4f6e6c2234eb664647891b730d paul committed Aug 11, 2007
Showing with 8 additions and 4 deletions.
  1. +8 −4 Makefile
View
@@ -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

0 comments on commit aeaf849

Please sign in to comment.