mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Modified Makefile for tests.
This commit is contained in:
parent
2b1e58b3ab
commit
c67bba86aa
1 changed files with 8 additions and 7 deletions
|
|
@ -1,8 +1,9 @@
|
|||
source = test_binary_search.f90
|
||||
objects = $(source:.f90=.o)
|
||||
tests = $(basename $(source))
|
||||
source = $(wildcard *.f90)
|
||||
test_objects = $(source:.f90=.o)
|
||||
executables = $(basename $(source))
|
||||
|
||||
objects += ../search.o ../constants.o ../error.o ../global.o
|
||||
objects = ../search.o ../constants.o ../error.o ../global.o
|
||||
objects += ../mesh.o ../mesh_header.o
|
||||
|
||||
#===============================================================================
|
||||
# Compiler Options
|
||||
|
|
@ -16,9 +17,9 @@ LDFLAGS =
|
|||
# Targets
|
||||
#===============================================================================
|
||||
|
||||
all: $(tests)
|
||||
$(tests): $(objects)
|
||||
$(F90) $(LDFLAGS) $(objects) -o $@
|
||||
all: $(executables)
|
||||
$(executables): $(test_objects) $(objects)
|
||||
$(F90) $(LDFLAGS) $@.o $(objects) -o $@
|
||||
clean:
|
||||
@rm -f *.o *.mod $(tests)
|
||||
neat:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue