sl@0: sl@0: sl@0: OS=$(shell uname) sl@0: sl@0: ifeq ($(OS), Darwin) sl@0: FILE=Makefile.mac sl@0: endif sl@0: sl@0: ifneq (,$(findstring MINGW,$(OS))) sl@0: FILE=Makefile.mingw sl@0: endif sl@0: sl@0: ifeq ($(OS), Linux) sl@0: FILE=Makefile.linux sl@0: endif sl@0: sl@0: ifeq ($(OS), FreeBSD) sl@0: FILE=Makefile.freebsd sl@0: endif sl@0: sl@0: ifeq ($(FILE), ) sl@0: all: sl@0: $(error Your platform ${OS} is not supported at this time.) sl@0: endif sl@0: sl@0: include $(FILE)