Files
google-apis-rs/Makefile.helpers
Sebastian Thiel 0c2f149b1e feat(make): unified make based build system
Added all prerequisite programs in binary for easier use.
Make is now implemented top-level, and is not expected to do too much
work actually. It will, however, keep track of all required
gsl invocation and make sure calls are efficient by not having
to rebuild everything every time. That's what make does, anyway ;)
2015-03-01 11:21:41 +01:00

35 lines
714 B
Makefile

OS := $(shell uname)
ifeq ($(OS), "")
OS = Windows
endif
ARCH :=
# based on http://stackoverflow.com/questions/714100/os-detecting-makefile
ifeq ($(OS),Windows)
ARCH = WIN32
ifeq ($(PROCESSOR_ARCHITECTURE),AMD64)
ARCH = AMD64
endif
ifeq ($(PROCESSOR_ARCHITECTURE),x86)
ARCH = IA32
endif
else
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux)
OS = LINUX
endif
ifeq ($(UNAME_S),Darwin)
OS = OSX
endif
UNAME_M := $(shell uname -m)
ifeq ($(UNAME_M),x86_64)
ARCH = AMD64
endif
ifneq ($(filter %86,$(UNAME_M)),)
ARCH = IA32
endif
ifneq ($(filter arm%,$(UNAME_M)),)
ARCH = ARM
endif
endif