summaryrefslogtreecommitdiffstats
path: root/examples/Makefile
diff options
context:
space:
mode:
authorJPeterMugaas <jpmugaas@suddenlink.net>2019-04-22 19:48:48 (GMT)
committerJPeterMugaas <jpmugaas@suddenlink.net>2019-04-22 19:48:48 (GMT)
commitb48f823f907e7763ed4178726c00453fb2af7a28 (patch)
tree85689a795652cd9eb8281a98024ac04012eb5735 /examples/Makefile
parent773b66547f84792fd4143e605ca27f31c2989945 (diff)
downloadlz4-b48f823f907e7763ed4178726c00453fb2af7a28.zip
lz4-b48f823f907e7763ed4178726c00453fb2af7a28.tar.gz
lz4-b48f823f907e7763ed4178726c00453fb2af7a28.tar.bz2
Try to put some tests I made in ONE place. I also moved a test for "install" in one place to try to isolate it.
Diffstat (limited to 'examples/Makefile')
-rw-r--r--examples/Makefile48
1 files changed, 1 insertions, 47 deletions
diff --git a/examples/Makefile b/examples/Makefile
index 26aaafd..6a34b33 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -36,53 +36,7 @@ TESTFILE = Makefile
LZ4DIR := ../lib
LZ4 = ../programs/lz4
-
-# Define *.exe as extension for Windows systems
-
-# Define *.exe as extension for targetting Windows systems
-TARGET_OS ?= $(shell uname)
-ifeq ($(TARGET_OS),)
- TARGET_OS ?= $(OS)
-endif
-
-ifneq (,$(filter Windows%,$(TARGET_OS)))
-LIBLZ4 = liblz4-$(LIBVER_MAJOR)
-EXT = .exe
-else
-EXT = .exe
-ifneq (,$(filter MINGW%,$(TARGET_OS)))
-EXT = .exe
-else
-ifneq (,$(filter MSYS%,$(TARGET_OS)))
-EXT = .exe
-else
-ifneq (,$(filter CYGWIN%,$(TARGET_OS)))
-EXT = .exe
-else
-EXT =
-endif
-endif
-endif
-endif
-
-#determine if dev/nul based on host environment
-ifneq (,$(filter MINGW%,$(shell uname)))
-VOID := /dev/null
-else
-ifneq (,$(filter MSYS%,$(shell uname)))
-VOID := /dev/null
-else
-ifneq (,$(filter CYGWIN%,$(shell uname)))
-VOID := /dev/null
-else
-ifneq (,$(filter Windows%,$(OS)))
-VOID := nul
-else
-VOID := /dev/null
-endif
-endif
-endif
-endif
+include ../Makefile.inc
default: all