1 2 3OS=$(shell uname) 4 5ifeq ($(OS), Darwin) 6 FILE=Makefile.mac 7endif 8 9ifneq (,$(findstring MINGW,$(OS))) 10 FILE=Makefile.mingw 11endif 12 13ifeq ($(OS), Linux) 14 FILE=Makefile.linux 15endif 16 17ifeq ($(OS), FreeBSD) 18 FILE=Makefile.freebsd 19endif 20 21ifeq ($(FILE), ) 22all: 23 $(error Your platform ${OS} is not supported at this time.) 24endif 25 26include $(FILE) 27