Fixed compilation problem with fftw3 and added fake automake files to musredit and musrgui.

This commit is contained in:
2015-02-19 17:08:16 +01:00
parent ee02450af4
commit 68b071ec2e
5 changed files with 65 additions and 3 deletions

View File

@ -1167,6 +1167,8 @@ AC_CONFIG_FILES([Makefile \
src/external/libPhotoMeissner/Makefile \
src/external/libPhotoMeissner/classes/Makefile \
src/external/libBNMR/Makefile \
src/musredit/Makefile \
src/musrgui/Makefile \
src/musredit/musredit_startup.xml \
src/musrgui/musrgui_startup.xml])

View File

@ -22,15 +22,17 @@ SUBDIRS = external/MusrRoot \
external/mud \
$(PNEXUSDIRS) \
classes \
external
external \
musredit \
musrgui
if BUILD_MUSRGUI
SUBDIRS += $(EDITORDIR)
#SUBDIRS += $(EDITORDIR)
EXTRA_DIST = $(EDITORDIR)/Makefile
endif
if BUILD_MUSREDIT
SUBDIRS += $(EDITORDIR)
#SUBDIRS += $(EDITORDIR)
EXTRA_DIST = $(EDITORDIR)/Makefile
endif

View File

@ -36,6 +36,12 @@ using namespace std;
#include <TString.h>
// the following ifdef is needed for GCC 4.6 or higher, fftw 3.3 or higher and root 5.30.03 or lower
#ifdef __CINT__
typedef struct { char a[7]; } __float128; // needed since cint doesn't know it
#endif
#include "fftw3.h"
#define PMUSR_SUCCESS 0
#define PMUSR_WRONG_STARTUP_SYNTAX -1
#define PMUSR_MSR_FILE_NOT_FOUND -2

26
src/musredit/Makefile.am Normal file
View File

@ -0,0 +1,26 @@
## Process this file with automake to create Makefile.in
h_sources =
h_linkdef =
dict_h_sources =
cpp_sources =
dict_cpp_sources =
include_HEADERS = $(h_sources)
noinst_HEADERS = $(h_linkdef) $(dict_h_sources)
AM_CPPFLAGS = -I$(top_srcdir)/src/include $(PMUSR_CFLAGS) -I$(ROOTINCDIR)
AM_CXXFLAGS = $(LOCAL_LIB_CXXFLAGS)
BUILT_SOURCES = $(dict_cpp_sources) $(dict_h_sources)
AM_LDFLAGS = $(LOCAL_LIB_LDFLAGS) -L@ROOTLIBDIR@
CLEANFILES = *Dict.cpp *Dict.h *~ core
%Dict.cpp %Dict.h: %.h %LinkDef.h
@ROOTCINT@ -v -f $*Dict.cpp -c -p $(AM_CPPFLAGS) $^

26
src/musrgui/Makefile.am Normal file
View File

@ -0,0 +1,26 @@
## Process this file with automake to create Makefile.in
h_sources =
h_linkdef =
dict_h_sources =
cpp_sources =
dict_cpp_sources =
include_HEADERS = $(h_sources)
noinst_HEADERS = $(h_linkdef) $(dict_h_sources)
AM_CPPFLAGS = -I$(top_srcdir)/src/include $(PMUSR_CFLAGS) -I$(ROOTINCDIR)
AM_CXXFLAGS = $(LOCAL_LIB_CXXFLAGS)
BUILT_SOURCES = $(dict_cpp_sources) $(dict_h_sources)
AM_LDFLAGS = $(LOCAL_LIB_LDFLAGS) -L@ROOTLIBDIR@
CLEANFILES = *Dict.cpp *Dict.h *~ core
%Dict.cpp %Dict.h: %.h %LinkDef.h
@ROOTCINT@ -v -f $*Dict.cpp -c -p $(AM_CPPFLAGS) $^