Skip to content

Instantly share code, notes, and snippets.

View icecream17's full-sized avatar
🤔
thinking

icecream17

🤔
thinking
View GitHub Profile
@icecream17
icecream17 / Makefile
Last active March 4, 2022 16:15 — forked from sighingnow/Makefile
Detect operating system in Makefile.
# Detect operating system in Makefile.
# Author: He Tao
# Date: 2015-05-30
OSFLAG :=
ifeq ($(OS),Windows_NT)
OSFLAG += -D WIN32
ifeq ($(PROCESSOR_ARCHITECTURE),AMD64)
OSFLAG += -D AMD64
endif