If you are compiling on MacOS X and Linux then you can put the following in your makefile:
UNAME := $(shell uname)ifeq ($(UNAME), Darwin)CFLAGS = -Ofastendififeq ($(UNAME), Linux)CFLAGS = -O3endif# etc
If you are compiling on MacOS X and Linux then you can put the following in your makefile:
UNAME := $(shell uname)ifeq ($(UNAME), Darwin)CFLAGS = -Ofastendififeq ($(UNAME), Linux)CFLAGS = -O3endif# etc