Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Makefile.am

    r112f90 r796aa6  
    88  Helpers/Assert.cpp \
    99  Helpers/MemDebug.cpp
     10 
     11BASESOURCE = \
     12  ${HELPERSOURCE} \
     13  Space.cpp \
     14  vector.cpp
     15 
     16BASEHEADER = \
     17  ${HELPERHEADER} \
     18  Space.hpp \
     19  vector.hpp
    1020                       
    1121ATOMSOURCE = \
     
    3141
    3242LINALGSOURCE = \
    33   ${HELPERSOURCE} \
    3443  gslmatrix.cpp \
    3544  gslvector.cpp \
    36   linearsystemofequations.cpp \
    37   Space.cpp \
    38   vector.cpp
     45  linearsystemofequations.cpp
    3946                           
    4047LINALGHEADER = \
    4148  gslmatrix.hpp \
    4249  gslvector.hpp \
    43   linearsystemofequations.hpp \
    44   Space.hpp \
    45   vector.hpp
     50  linearsystemofequations.hpp
    4651                           
    4752ANALYSISSOURCE = \
     
    132137  Shapes/Shape.hpp \
    133138  Shapes/ShapeOps.hpp
     139
    134140 
    135 
    136 QTUIMOC_HEADER = UIElements/QT4/QTDialog.hpp \
    137         UIElements/QT4/QTMainWindow.hpp \
    138         UIElements/Menu/QT4/QTMenu.hpp \
    139         UIElements/Views/QT4/QTWorldView.hpp \
    140         UIElements/Views/QT4/GLMoleculeView.hpp \
    141         UIElements/Views/QT4/QTMoleculeView.hpp \
    142         UIElements/Views/QT4/QTStatusBar.hpp
    143  
    144 QTUIMOC_TARGETS = QTMainWindow.moc.cpp \
    145         QTMenu.moc.cpp\
    146         QTDialog.moc.cpp \
    147         QTWorldView.moc.cpp \
    148         GLMoleculeView.moc.cpp \
    149         QTMoleculeView.moc.cpp \
    150         QTStatusBar.moc.cpp
    151 
    152141DESCRIPTORSOURCE = Descriptors/AtomDescriptor.cpp \
    153142  Descriptors/AtomIdDescriptor.cpp \
     
    172161  Descriptors/MoleculePtrDescriptor.hpp \
    173162  Descriptors/MoleculeSelectionDescriptor.cpp
     163
     164
     165QTUIMOC_HEADER = UIElements/QT4/QTDialog.hpp \
     166        UIElements/QT4/QTMainWindow.hpp \
     167        UIElements/Menu/QT4/QTMenu.hpp \
     168        UIElements/Views/QT4/QTWorldView.hpp \
     169        UIElements/Views/QT4/GLMoleculeView.hpp \
     170        UIElements/Views/QT4/QTMoleculeView.hpp \
     171        UIElements/Views/QT4/QTStatusBar.hpp
    174172                                 
    175 QTUISOURCE = ${QTUIMOC_TARGETS} \
     173QTUISOURCE = allmocs.moc.cpp \
    176174        UIElements/QT4/QTMainWindow.cpp \
    177175        UIElements/QT4/QTDialog.cpp \
     
    196194  ${SHAPESOURCE} \
    197195  ${DESCRIPTORSOURCE} \
    198   ${HELPERSOURCE} \
    199196  bond.cpp \
    200197  bondgraph.cpp \
     
    228225  periodentafel.cpp \
    229226  Plane.cpp \
    230   Space.cpp \
    231227  tesselation.cpp \
    232228  tesselationhelpers.cpp \
     
    234230  triangleintersectionlist.cpp \
    235231  UIElements/UIFactory.cpp \
    236   vector.cpp \
    237232  vector_ops.cpp \
    238233  verbose.cpp \
     
    296291INCLUDES = -I$(top_srcdir)/src/unittests -I$(top_srcdir)/src/Actions -I$(top_srcdir)/src/UIElements
    297292
    298 noinst_LIBRARIES = libmolecuilder.a libgslwrapper.a libmenu.a libparser.a
     293noinst_LIBRARIES = libmolecuilderbase.a libmolecuilder.a libgslwrapper.a libmenu.a libparser.a
    299294bin_PROGRAMS = molecuilder molecuildergui joiner analyzer
     295EXTRA_PROGRAMS = unity
    300296
    301297molecuilderdir = ${bindir}
    302298
     299libmolecuilderbase_a_SOURCES = ${BASESOURCE} ${BASEHEADER}
    303300libmolecuilder_a_SOURCES = ${SOURCE} ${HEADER}
    304 
    305301libmenu_a_SOURCES = ${UISOURCE} ${UIHEADER}
    306302libparser_a_SOURCES = ${PARSERSOURCE} ${PARSERHEADER}
     
    314310molecuilder_SOURCES = ${LEGACYSOURCE} builder.cpp
    315311molecuilder_SOURCES += $(srcdir)/version.c
    316 molecuilder_LDADD = UIElements/libMolecuilderUI.a Actions/libMolecuilderActions.a libmolecuilder.a libparser.a libgslwrapper.a $(BOOST_LIB) ${BOOST_THREAD_LIB} ${BOOST_PROGRAM_OPTIONS_LIB}
     312molecuilder_LDADD = UIElements/libMolecuilderUI.a Actions/libMolecuilderActions.a libmolecuilderbase.a libmolecuilder.a libparser.a libgslwrapper.a $(BOOST_LIB) ${BOOST_THREAD_LIB} ${BOOST_PROGRAM_OPTIONS_LIB}
    317313
    318314#Stuff for building the GUI using QT
     
    321317molecuildergui_CXXFLAGS = ${QT_CXXFLAGS} ${GLU_CXXFLAGS} -DUSE_GUI_QT
    322318molecuildergui_LDFLAGS = $(BOOST_LIB) ${QT_LDFLAGS} ${GLU_LDFLAGS}
    323 molecuildergui_LDADD = UIElements/libMolecuilderUI.a Actions/libMolecuilderActions.a libmolecuilder.a libparser.a libgslwrapper.a $(BOOST_LIB) ${BOOST_THREAD_LIB} ${BOOST_PROGRAM_OPTIONS_LIB}  ${GUI_LIBS}
     319molecuildergui_LDADD = UIElements/libMolecuilderUI.a Actions/libMolecuilderActions.a libmolecuilderbase.a libmolecuilder.a libparser.a libgslwrapper.a $(BOOST_LIB) ${BOOST_THREAD_LIB} ${BOOST_PROGRAM_OPTIONS_LIB}  ${GUI_LIBS}
    324320
    325321joiner_SOURCES = joiner.cpp datacreator.cpp parser.cpp datacreator.hpp helpers.hpp parser.hpp periodentafel.hpp
    326 joiner_LDADD = libmolecuilder.a $(BOOST_LIB) ${BOOST_THREAD_LIB}
     322joiner_LDADD = libmolecuilder.a libmolecuilderbase.a $(BOOST_LIB) ${BOOST_THREAD_LIB}
    327323
    328324analyzer_SOURCES = analyzer.cpp datacreator.cpp parser.cpp helpers.hpp periodentafel.hpp parser.hpp datacreator.hpp
    329 analyzer_LDADD = libmolecuilder.a $(BOOST_LIB) ${BOOST_THREAD_LIB}
     325analyzer_LDADD = libmolecuilder.a libmolecuilderbase.a $(BOOST_LIB) ${BOOST_THREAD_LIB}
     326
     327unity_SOURCES = unity.cpp $(srcdir)/version.c
     328unity_LDADD = $(BOOST_LIB) ${BOOST_THREAD_LIB} ${BOOST_PROGRAM_OPTIONS_LIB}
    330329
    331330#Rules needed for QT4
     
    333332# Therfore `%'-rules do not seem to work
    334333#Quick fix to get it done otherwise
    335 ${QTUIMOC_TARGETS}: ${QTUIMOC_HEADER}
     334allmocs.moc.cpp: ${QTUIMOC_HEADER}
     335        echo "" > allmocs.moc.cpp;\
    336336        list='$(QTUIMOC_HEADER)'; for header in $$list; do \
    337337        echo "Making mocfile for $$header"; \
     
    339339        $(MOC) $(srcdir)/$$header -o $$target \
    340340        || eval $$failcom; \
     341        echo "#include \"$$target\"" >> allmocs.moc.cpp; \
    341342        done;
    342343
    343 MOSTLYCLEANFILES = ${QTUIMOC_TARGETS}
     344unity.cpp: ${LINALGSOURCE} ${LINALGHEADER} ${SOURCE} ${HEADER}
     345        echo "" >  unity.cpp; \
     346        list='$(BASESOURCE)'; for file in $$list; do \
     347          echo "#include \"$(srcdir)/$$file\"" >> unity.cpp; \
     348        done; \
     349        list='$(LINALGSOURCE)'; for file in $$list; do \
     350          echo "#include \"$(srcdir)/$$file\"" >> unity.cpp; \
     351        done; \
     352        list='$(SOURCE)'; for file in $$list; do \
     353          echo "#include \"$(srcdir)/$$file\"" >> unity.cpp; \
     354        done; \
     355        subdirs='$(SUBDIRS)';for directory in $$subdirs; do\
     356                olddir=$$PWD;\
     357                cd $$directory && make unity.cpp;\
     358                cd $$olddir;\
     359                echo "#include \"$$directory/unity.cpp\"" >> unity.cpp;\
     360        done;\
     361        echo "#include \"$(srcdir)/builder.cpp\"" >> unity.cpp;
     362
     363MOSTLYCLEANFILES = allmocs.moc.cpp unity.cpp
    344364       
    345365#EXTRA_DIST = ${molecuilder_DATA}
Note: See TracChangeset for help on using the changeset viewer.