diff options
author | horchi <vdr@jwendel.de> | 2017-03-20 17:55:35 +0100 |
---|---|---|
committer | horchi <vdr@jwendel.de> | 2017-03-20 17:55:35 +0100 |
commit | 1fe6380b69b14c3840010aed520aeb2e946219a5 (patch) | |
tree | 392ff4401fedee9d6c1ba12b3ca27ea443e114fc /Make.config | |
parent | fa25e7126b97348f825abad9fabb2bdc82e52a05 (diff) | |
download | vdr-plugin-epg2vdr-1fe6380b69b14c3840010aed520aeb2e946219a5.tar.gz vdr-plugin-epg2vdr-1fe6380b69b14c3840010aed520aeb2e946219a5.tar.bz2 |
2017-03-20: version 1.1.51 (horchi)\n - change: Removed compiler warnings when using clang\n - added: Added clang++ to Make.config (as optional compiler)\n - change: Fixed APIVERSION check for VDR < 2.2.0 (thx to nobanzai)\n\n1.1.51
Diffstat (limited to 'Make.config')
-rw-r--r-- | Make.config | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/Make.config b/Make.config index a7e2c8b..66bf692 100644 --- a/Make.config +++ b/Make.config @@ -10,11 +10,17 @@ PREFIX = /usr/local DEBUG = 1 +#USE_CLANG = 1 # ----------------------- # don't touch below ;) -CC = g++ +ifdef USE_CLANG + CC = clang++ +else + CC = g++ +endif + doCompile = $(CC) -c $(CFLAGS) $(DEFINES) doLink = $(CC) $(LFLAGS) doLib = ar -rs @@ -28,14 +34,20 @@ 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 += -fPIC -Wreturn-type -Wall -Wno-parentheses -Wformat -pedantic \ + -Wno-long-long -Wunused-variable -Wunused-label -Wno-unused-result \ + -Wunused-value -Wunused-function -Wno-variadic-macros \ + -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 +CXXFLAGS += -std=c++11 -D__STDC_FORMAT_MACROS -CXXFLAGS += -std=c++11 -D__STDC_FORMAT_MACROS +ifdef USE_CLANG + CXXFLAGS += -x c++ -Wunused-const-variable +else + CXXFLAGS += -Wunused-but-set-variable +endif -CFLAGS += $(CXXFLAGS) +DEFINES += -D__STL_CONFIG_H +CFLAGS += $(CXXFLAGS) %.o: %.c $(doCompile) -o $@ $< |