summaryrefslogtreecommitdiff
blob: 14272e2515b71e0e5b9fb6dc1270d1f5b86480fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
--- oyranos-0.3.2/configure
+++ oyranos-0.3.2/configure
@@ -30,7 +30,7 @@
 PKGC=$TARGET.pc
 VERS_H="$TARGET"_version.h
 zeile="$0 $@"
-MAKEFILE_DIR=". fl_i18n libXNVCtrl yajl"; export MAKEFILE_DIR
+MAKEFILE_DIR=". fl_i18n libXNVCtrl"; export MAKEFILE_DIR
 
 if [ `uname` = "Linux" ]; then
   v=-v
@@ -68,7 +54,7 @@
 OY_DEVEL_MONTH=05
 OYRANOS_DEVEL_MONTH=5 # numeric
 OY_DEVEL_YEAR=2011
-OY_GIT_MASTER="`cat $ROOT_DIR/.git/refs/heads/master`"
+OY_GIT_MASTER=""
 time="`date +%y%m%d.%H%M%S`"
 DATE="$OY_START_MONTH $OY_START_YEAR - $OY_DEVEL_MONTH $OY_DEVEL_YEAR"
 VERSION=$VERSION_A.$VERSION_B.$VERSION_C
@@ -120,7 +107,7 @@
 fi
 IFS=$old_IFS
 
-STRIPOPT="sed s/-O.//"
+STRIPOPT="cat"
 
 if [ $# -gt 0 ]; then
   prefix=""
--- oyranos-0.3.2/configure_tests.sh
+++ oyranos-0.3.2/configure_tests.sh
@@ -3,7 +3,7 @@
 set > testset.txt
 ERROR=0
 WARNING=0
-STRIPOPT='s/-O.// ; s/-isysroot [[:graph:]]*// ; s/-arch ppc// ; s/-arch i386//'
+STRIPOPT='s/-isysroot [[:graph:]]*// ; s/-arch ppc// ; s/-arch i386//'
 
 mkdir -p tests
 
--- oyranos-0.3.2/oforms/oyranos_xforms.makefile
+++ oyranos-0.3.2/oforms/oyranos_xforms.makefile
@@ -1,7 +1,8 @@
 INCL    = $(INCLUDE) -I../ -I./ $(DEBUG)
-CC      = gcc
+CC      ?= gcc
+CXX	?= c++
 DEBUG  = -Wall -g -O0
-LDFLAGS_ = $$LDFLAGS -L../fl_i18n
+LDFLAGS += -L../fl_i18n
 OY_LIBS := $(shell pkg-config libxml-2.0 --libs --cflags)
 OY_FLAGS = -L../ -loyranos -loyranos_object -loyranos_core $(OY_LIBS)
 FLTK_FLAGS := $(shell fltk-config --ldflags --cxxflags | sed s/-O2//) -lpthread
@@ -16,15 +17,15 @@
 
 oyranos-xforms:	$(SRCDIR)oyranos_xforms.c
 	echo "Compiling $(SRCDIR)$< + Linking $@ ..."
-	gcc -Wall -g $(CFLAGS) $(INCL)  $(SRCDIR)oyranos_xforms.c -o oyranos-xforms -pedantic $(OY_FLAGS) $(LDFLAGS_)
+	$(CC) -Wall -g $(CFLAGS) $(INCL)  $(SRCDIR)oyranos_xforms.c -o oyranos-xforms -pedantic $(OY_FLAGS) $(LDFLAGS)
 
 oyranos-xforms-modules:	$(SRCDIR)oyranos_xforms_modules.c
 	echo "Compiling $(SRCDIR)$< + Linking $@ ..."
-	gcc -Wall -g $(CFLAGS) $(INCL)  $< -o $@ -pedantic $(OY_FLAGS) $(LDFLAGS_)
+	$(CC) -Wall -g $(CFLAGS) $(INCL)  $< -o $@ -pedantic $(OY_FLAGS) $(LDFLAGS)
 
 oyranos-xforms-fltk:	$(SRCDIR)oyranos_xforms_fltk.cxx $(SRCDIR)oyranos_forms_fltk.cxx $(SRCDIR)oyranos_widgets_fltk.cxx $(SRCDIR)oyranos_widgets_fltk.h
 	echo "Compiling $(SRCDIR)$< + Linking $@ ..."
-	c++ $(LDFLAGS_) -Wall -g $(CXXFLAGS) $(INCL)  $(SRCDIR)oyranos_xforms_fltk.cxx -o oyranos-xforms-fltk -pedantic -loyforms_fltk -lfl_i18n $(FLTK_FLAGS) $(OY_FLAGS)
+	$(CXX) $(LDFLAGS) -Wall -g $(CXXFLAGS) $(INCL)  $(SRCDIR)oyranos_xforms_fltk.cxx -o oyranos-xforms-fltk -pedantic -loyforms_fltk -lfl_i18n $(FLTK_FLAGS) $(OY_FLAGS)
 
 
 # Build commands and filename extensions...