summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorEvan Ramos <Hendricks266@gmail.com>2014-06-23 16:24:49 -0500
committerErik de Castro Lopo <erikd@mega-nerd.com>2014-06-24 21:02:24 +1000
commit9df6736ec09f9de05425ba38d7f63648b1242f98 (patch)
treeb247c41a4c3b550e673016416dd9c0a849611ebe /examples
parent731655ad23b4393c7a0d1c69a755e1a9e369d920 (diff)
downloadflac-9df6736ec09f9de05425ba38d7f63648b1242f98.tar.gz
Update Makefile.lite build system.
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/c/decode/file/Makefile.lite4
-rw-r--r--examples/c/encode/file/Makefile.lite4
-rw-r--r--examples/cpp/decode/file/Makefile.lite4
-rw-r--r--examples/cpp/encode/file/Makefile.lite4
4 files changed, 16 insertions, 0 deletions
diff --git a/examples/c/decode/file/Makefile.lite b/examples/c/decode/file/Makefile.lite
index 2cb32ae6..e2df754a 100644
--- a/examples/c/decode/file/Makefile.lite
+++ b/examples/c/decode/file/Makefile.lite
@@ -30,8 +30,12 @@ INCLUDES = -I$(topdir)/include
ifeq ($(OS),Darwin)
EXPLICIT_LIBS = $(libdir)/libFLAC.a $(OGG_EXPLICIT_LIBS) -lm
else
+ifeq ($(findstring Windows,$(OS)),Windows)
+ LIBS = -lFLAC -lwin_utf8_io $(OGG_LIBS) -lm
+else
LIBS = -lFLAC $(OGG_LIBS) -lm
endif
+endif
SRCS_C = main.c
diff --git a/examples/c/encode/file/Makefile.lite b/examples/c/encode/file/Makefile.lite
index eb8526b6..9d6efe97 100644
--- a/examples/c/encode/file/Makefile.lite
+++ b/examples/c/encode/file/Makefile.lite
@@ -30,8 +30,12 @@ INCLUDES = -I$(topdir)/include
ifeq ($(OS),Darwin)
EXPLICIT_LIBS = $(libdir)/libFLAC.a $(OGG_EXPLICIT_LIBS) -lm
else
+ifeq ($(findstring Windows,$(OS)),Windows)
+ LIBS = -lFLAC -lwin_utf8_io $(OGG_LIBS) -lm
+else
LIBS = -lFLAC $(OGG_LIBS) -lm
endif
+endif
SRCS_C = main.c
diff --git a/examples/cpp/decode/file/Makefile.lite b/examples/cpp/decode/file/Makefile.lite
index ea6c5e23..b5bf565a 100644
--- a/examples/cpp/decode/file/Makefile.lite
+++ b/examples/cpp/decode/file/Makefile.lite
@@ -30,8 +30,12 @@ INCLUDES = -I$(topdir)/include
ifeq ($(OS),Darwin)
EXPLICIT_LIBS = $(libdir)/libFLAC++.a $(libdir)/libFLAC.a $(OGG_EXPLICIT_LIBS) -lm
else
+ifeq ($(findstring Windows,$(OS)),Windows)
+ LIBS = -lFLAC++ -lFLAC -lwin_utf8_io $(OGG_LIBS) -lm
+else
LIBS = -lFLAC++ -lFLAC $(OGG_LIBS) -lm
endif
+endif
SRCS_CPP = main.cpp
diff --git a/examples/cpp/encode/file/Makefile.lite b/examples/cpp/encode/file/Makefile.lite
index 17238a1e..a50ee1b2 100644
--- a/examples/cpp/encode/file/Makefile.lite
+++ b/examples/cpp/encode/file/Makefile.lite
@@ -30,8 +30,12 @@ INCLUDES = -I$(topdir)/include
ifeq ($(OS),Darwin)
EXPLICIT_LIBS = $(libdir)/libFLAC++.a $(libdir)/libFLAC.a $(OGG_EXPLICIT_LIBS) -lm
else
+ifeq ($(findstring Windows,$(OS)),Windows)
+ LIBS = -lFLAC++ -lFLAC -lwin_utf8_io $(OGG_LIBS) -lm
+else
LIBS = -lFLAC++ -lFLAC $(OGG_LIBS) -lm
endif
+endif
SRCS_CPP = main.cpp