Browse Source

Create common Makefile that automatically loads make rules on a per-OS basis.

Adam Ierymenko 11 years ago
parent
commit
66cff2e98d
4 changed files with 11 additions and 1 deletions
  1. 0 1
      .gitignore
  2. 11 0
      Makefile
  3. 0 0
      make-linux.mk
  4. 0 0
      make-mac.mk

+ 0 - 1
.gitignore

@@ -3,7 +3,6 @@
 /zerotier-*
 /build-ZeroTierUI-*
 /ZeroTierUI/*.user
-/Makefile
 *.o
 .DS_Store
 .Apple*

+ 11 - 0
Makefile

@@ -0,0 +1,11 @@
+# Common makefile -- loads make rules for each platform
+
+OSTYPE=$(shell uname -s)
+
+ifeq ($(OSTYPE),Darwin)
+	include make-mac.mk
+endif
+
+ifeq ($(OSTYPE),Linux)
+	include make-linux.mk
+endif

+ 0 - 0
Makefile.linux → make-linux.mk


+ 0 - 0
Makefile.mac → make-mac.mk