summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 238d359..76a46b1 100644
--- a/Makefile
+++ b/Makefile
@@ -1,15 +1,19 @@
CC=gcc
CFLAGS=-Wall -Werror -pedantic
LIBS=-lpthread
+# (Optimization) flags as suggested by SFMT docu.
+SFMTFLAGS=-DHAVE_SSE2 -DSFMT_MEXP=19937
+OPTIMIZE=-O3 -fno-strict-aliasing
+#OPTIMIZE=-ggdb
-nebula2: nebula2.o config.o render.o statefile.o mutex_helpers.o iniparser/libiniparser.a
- $(CC) $(CFLAGS) $(LIBS) -o nebula2 nebula2.o config.o render.o statefile.o mutex_helpers.o iniparser/libiniparser.a
+nebula2: nebula2.o config.o render.o statefile.o color.o mutex_helpers.o iniparser/libiniparser.a SFMT/SFMT.c
+ $(CC) $(CFLAGS) $(OPTIMIZE) $(SFMTFLAGS) $(LIBS) -o nebula2 nebula2.o config.o render.o statefile.o color.o mutex_helpers.o iniparser/libiniparser.a SFMT/SFMT.c
iniparser/libiniparser.a:
make -C iniparser libiniparser.a
%.o:%.c
- $(CC) $(CFLAGS) -c -o $@ $<
+ $(CC) $(CFLAGS) $(OPTIMIZE) $(SFMTFLAGS) -c -o $@ $<
clean:
rm -f *.o