summaryrefslogtreecommitdiff
path: root/Make.config
diff options
context:
space:
mode:
Diffstat (limited to 'Make.config')
-rw-r--r--Make.config41
1 files changed, 41 insertions, 0 deletions
diff --git a/Make.config b/Make.config
new file mode 100644
index 0000000..5d52c29
--- /dev/null
+++ b/Make.config
@@ -0,0 +1,41 @@
+
+# Make.config
+#
+# See the README file for copyright information and how to reach the author.
+#
+#
+
+# user defined stuff
+
+PREFIX = /usr/local
+
+DEBUG = 1
+
+# -----------------------
+# don't touch below ;)
+
+CC = g++
+doCompile = $(CC) -c $(CFLAGS) $(DEFINES)
+doLink = $(CC) $(LFLAGS)
+doLib = ar -rs
+
+USEPYTHON = 1
+USEEPGS = 1
+
+USES = -DVDR_PLUGIN -DUSEUUID -DUSEMD5 -DUSEJSON -DUSEGUNZIP -DPLUGIN_NAME_I18N='"$(PLUGIN)"'
+
+ifdef DEBUG
+ CXXFLAGS += -ggdb -O0
+endif
+
+CXXFLAGS += -fPIC -Wreturn-type -Wall -Wno-parentheses -Wformat -pedantic \
+ -Wno-long-long -Wunused-variable -Wunused-label -Wno-unused-result \
+ -Wunused-value -Wunused-but-set-variable -Wunused-function -Wno-variadic-macros \
+ -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
+
+CXXFLAGS += -D__STDC_FORMAT_MACROS
+
+CFLAGS += $(CXXFLAGS)
+
+%.o: %.c
+ $(doCompile) -o $@ $<