mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2025-12-30 16:18:49 +01:00
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 ;)
35 lines
714 B
Makefile
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 |