mirror of
				https://github.com/paboyle/Grid.git
				synced 2025-10-28 10:39:34 +00:00 
			
		
		
		
	Reorg of build structure
This commit is contained in:
		
							
								
								
									
										44
									
								
								lib/Makefile.am
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										44
									
								
								lib/Makefile.am
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,44 @@ | ||||
| # additional include paths necessary to compile the C++ library | ||||
| AM_CXXFLAGS = -I$(top_srcdir)/ | ||||
|  | ||||
|  | ||||
| extra_sources= | ||||
| if BUILD_COMMS_MPI | ||||
|   extra_sources+=Grid_communicator_mpi.cc | ||||
|   extra_sources+=Grid_stencil_common.cc | ||||
| endif | ||||
| if BUILD_COMMS_NONE | ||||
|   extra_sources+=Grid_communicator_fake.cc | ||||
|   extra_sources+=Grid_stencil_common.cc | ||||
| endif | ||||
|  | ||||
| # | ||||
| # Libraries | ||||
| # | ||||
| lib_LIBRARIES = libGrid.a | ||||
| libGrid_a_SOURCES = Grid_init.cc $(extra_sources) | ||||
|  | ||||
| # | ||||
| # Include files | ||||
| # | ||||
| include_HEADERS = Grid_config.h\ | ||||
| 	Grid.h\ | ||||
| 	Grid_simd.h\ | ||||
| 	Grid_vComplexD.h\ | ||||
| 	Grid_vComplexF.h\ | ||||
| 	Grid_vRealD.h\ | ||||
| 	Grid_vRealF.h\ | ||||
| 	Grid_Cartesian.h\ | ||||
| 	Grid_Lattice.h\ | ||||
| 	Grid_Communicator.h\ | ||||
| 	Grid_QCD.h\ | ||||
| 	Grid_aligned_allocator.h\ | ||||
| 	Grid_cshift.h\ | ||||
| 	Grid_cshift_common.h\ | ||||
| 	Grid_cshift_mpi.h\ | ||||
| 	Grid_cshift_none.h\ | ||||
| 	Grid_stencil.h\ | ||||
| 	Grid_math_types.h | ||||
|  | ||||
|  | ||||
|  | ||||
							
								
								
									
										15
									
								
								tests/Makefile.am
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								tests/Makefile.am
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,15 @@ | ||||
| # additional include paths necessary to compile the C++ library | ||||
| AM_CXXFLAGS = -I$(top_srcdir)/lib | ||||
| AM_LDFLAGS = -L$(top_srcdir)/lib | ||||
|  | ||||
| # | ||||
| # Test code | ||||
| # | ||||
| bin_PROGRAMS = Grid_main test_Grid_stencil | ||||
|  | ||||
| Grid_main_SOURCES = Grid_main.cc | ||||
| Grid_main_LDADD = -lGrid | ||||
|  | ||||
| test_Grid_stencil_SOURCES = test_Grid_stencil.cc | ||||
| test_Grid_stencil_LDADD = -lGrid | ||||
|  | ||||
		Reference in New Issue
	
	Block a user