~ubuntu-branches/ubuntu/maverick/codelite/maverick

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2010-07-29 19:42:47 UTC
  • mfrom: (1.1.9 upstream) (18.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20100729194247-cuibfk03wog33nxq
Tags: 2.6.0.4189~dfsg-1
* New upstream release.
* Bump Standards.
* Refresh patches.
* Add license information about files under ./Debugger/

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
        is_so_lib=$1
25
25
        additional_include_path=$2
26
26
        additional_links=$3
27
 
        
 
27
 
28
28
        if [ "$os_name" = "Darwin" ]; then
29
29
                if [ "$is_64bit" = "yes" ]; then
30
30
                        compiler_name=${compiler_name}" -m64 "
75
75
        echo "WXCFG=${wxcfg}" >> Makefile
76
76
        echo "DESTDIR=" >> Makefile
77
77
        echo "" >> Makefile
78
 
        echo "CCFLAGS= -Wall \$(shell wx-config --cxxflags \$(WXCFG)) -fno-strict-aliasing -DASTYLE_LIB -DYY_NEVER_INTERACTIVE=1 -DGTK -DSCI_LEXER -DLINK_LEXERS -D__WX__ -DINSTALL_DIR=\\\"${prefix}/share/codelite\\\" -DPLUGINS_DIR=\\\"${plugins_dir}\\\"" >> Makefile
79
 
        echo "LINK_FLAGS =  -L${base_dir}/\$(OUTPUT_DIR) ${rpaths} -lplugin\$(EXT) -lcodelite\$(EXT) -lwxsqlite3\$(EXT) -lwxscintilla\$(EXT) -L${base_dir}/sdk/sqlite3/lib \$(shell ${wxconfiglibs} \$(WXCFG)) -lsqlite3" >> Makefile
80
 
        echo "PLUGIN_LINK_FLAGS =  -L${base_dir}/\$(OUTPUT_DIR) \$(shell ${wxconfiglibs} \$(WXCFG)) ${additional_links} " >> Makefile
 
78
        echo "CCFLAGS= -Wall `wx-config --cxxflags ${wxcfg}` -fno-strict-aliasing -DASTYLE_LIB -DYY_NEVER_INTERACTIVE=1 -DGTK -DSCI_LEXER -DLINK_LEXERS -D__WX__ -DINSTALL_DIR=\\\"${prefix}/share/codelite\\\" -DPLUGINS_DIR=\\\"${plugins_dir}\\\"" >> Makefile
 
79
        echo "LINK_FLAGS =  -L${base_dir}/\$(OUTPUT_DIR) ${rpaths} -lplugin\$(EXT) -lcodelite\$(EXT) -lwxsqlite3\$(EXT) -lwxscintilla\$(EXT) -L${base_dir}/sdk/sqlite3/lib `${wxconfiglibs} ${wxcfg}` -lsqlite3" >> Makefile
 
80
        echo "PLUGIN_LINK_FLAGS =  -L${base_dir}/\$(OUTPUT_DIR) `${wxconfiglibs} ${wxcfg} ${additional_links}`" >> Makefile
81
81
        echo "INCLUDES := \$(INCLUDES) ${additional_include_path} " >> Makefile
82
82
        echo "" >> Makefile
83
83
        if [ "$os_name" != "Darwin" ] ; then
303
303
                        echo "  \$(GCC) -DHAVE_CONFIG_H -I. -Ilibctags  -MT${configuration}/${a_file_no_ext}.o -MF${configuration}/${a_file_no_ext}.o.d  -MM ${a_file}" >> Makefile
304
304
                else
305
305
                        echo ${configuration}/${a_file_no_ext}.o: ${a_file} ${configuration}/${a_file_no_ext}.o.d >> Makefile
306
 
                        echo "  \$(CMP)  -c ${a_file} -DHAVE_CONFIG_H -I. -Ilibctags -o ${configuration}/${a_file_no_ext}.o" >> Makefile
 
306
                        echo "  \$(CMP) `wx-config --cflags --unicode` -c ${a_file} -DHAVE_CONFIG_H -I. -Ilibctags -o ${configuration}/${a_file_no_ext}.o" >> Makefile
307
307
                        echo ${configuration}/${a_file_no_ext}.o.d:  >> Makefile
308
 
                        echo "  \$(CMP) -DHAVE_CONFIG_H -I. -Ilibctags  -MT${configuration}/${a_file_no_ext}.o -MF${configuration}/${a_file_no_ext}.o.d  -MM ${a_file}" >> Makefile
 
308
                        echo "  \$(CMP) `wx-config --cflags --unicode` -DHAVE_CONFIG_H -I. -Ilibctags  -MT${configuration}/${a_file_no_ext}.o -MF${configuration}/${a_file_no_ext}.o.d  -MM ${a_file}" >> Makefile
309
309
                fi
310
310
 
311
311
        done
316
316
 
317
317
        ## On FreeBSD, -ldl is part og libc
318
318
        if [ "$os_name" = "FreeBSD" ]; then
319
 
                echo "  \$(CMP) -o codelite_indexer \$(codelite_indexer_objects) -lpthread " >> Makefile
 
319
                echo "  \$(CMP) -o codelite_indexer \$(codelite_indexer_objects) -lpthread `wx-config --libs --unicode`" >> Makefile
320
320
        else
321
 
                echo "  \$(CMP) -o codelite_indexer \$(codelite_indexer_objects) -lpthread -ldl " >> Makefile
 
321
                echo "  \$(CMP) -o codelite_indexer \$(codelite_indexer_objects) -lpthread -ldl `wx-config --libs --unicode`" >> Makefile
322
322
        fi
323
323
 
324
324
        echo >> Makefile
388
388
        if [ "$os_name" = "Darwin" ]; then
389
389
                shared_obj_switch=" -dynamiclib "
390
390
        fi
391
 
        
 
391
 
392
392
        if [ "$rule_name" = "SDK" ]; then
393
393
                echo "${rule_name}: \$(${object_list_name}) CodeLite " >> Makefile
394
 
        else 
 
394
        else
395
395
                echo "${rule_name}: \$(${object_list_name})" >> Makefile
396
396
        fi
397
 
        
 
397
 
398
398
        echo "  \$(CMP) -fPIC ${shared_obj_switch} -o ${base_dir}/\$(OUTPUT_DIR)/${libname}.so \$(${object_list_name}) \$(PLUGIN_LINK_FLAGS) ${additional_link_libs}" >> Makefile
399
399
        if [ $dont_copy != "dont_copy" ]; then
400
400
                echo "  cp -f ${base_dir}/\$(OUTPUT_DIR)/${libname}.so ${runtime_path}/." >> Makefile
470
470
        fi
471
471
 
472
472
        createObjectList "*.cpp" "${plugin_name}Objects"
473
 
        
 
473
 
474
474
        createPluginTargets "${plugin_name}" "${post_install_path}"
475
475
        if [ "$plugin_name" = "Subversion2" ] ; then
476
476
          createRules_sharedObject "*.cpp" "${plugin_name}Objects" "${plugin_name}" "${plugin_name}" "copy" "-L../lib -lplugin\$(EXT) -lcodelite\$(EXT) -lwxscintilla\$(EXT)"
477
 
        else 
 
477
        else
478
478
          createRules_sharedObject "*.cpp" "${plugin_name}Objects" "${plugin_name}" "${plugin_name}" "copy" "-L../lib -lplugin\$(EXT) -lcodelite\$(EXT) -lwxscintilla\$(EXT) -lwxsqlite3\$(EXT)"
479
479
        fi
480
480
 
654
654
        echo "Is the wxWidgets development package installed?"
655
655
        exit
656
656
fi
657
 
 
 
657
 
658
658
wxMAJOR_VERSION=`echo $wxversionnumber | awk -F. '{print $1}'`
659
659
wxMINOR_VERSION=`echo $wxversionnumber | awk -F. '{print $2}'`
660
660
# Should we ever need it: wxRELEASE_NUMBER=`echo $wxversionnumber | awk -F. '{print $3}'`
827
827
echo "SymbolView_clean\\" >> Makefile
828
828
echo "ContinuousBuild_clean\\" >> Makefile
829
829
echo "QmakePlugin_clean\\" >> Makefile
830
 
echo "CppCheck_clean\\" >> Makefile
831
 
echo "MacBundler_clean" >> Makefile
 
830
if [ "$os_name" = "Darwin" ]; then
 
831
        echo "MacBundler_clean\\" >> Makefile
 
832
fi
 
833
echo "CppCheck_clean" >> Makefile
832
834
echo "" >> Makefile
833
835
 
834
836
########################################################