Skip to content

Commit

Permalink
Update make rules with proper format (#69)
Browse files Browse the repository at this point in the history
* Update rules with proper format

* Remove outdated rule
  • Loading branch information
eirikurj authored Mar 16, 2022
1 parent 5763970 commit e90267a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
# ******************************************************************

SUBDIR_SRC = src/modules \
src/IO \
src/utils \
src/warp \
src/adjoint/ADFirstAidKit \
src/adjoint/outputReverse \
src/adjoint/outputForward \
src/IO \
src/utils \
src/warp \
src/adjoint/ADFirstAidKit \
src/adjoint/outputReverse \
src/adjoint/outputForward \


WARP_SUBDIRS = $(SUBDIR_SRC)
Expand Down
10 changes: 4 additions & 6 deletions Rules.mk
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
.F90.o: Makefile
%.o: %.F90
$(FF90) $(FF90_ALL_FLAGS) -c $< -o $(OBJDIR)/$(@F)
@echo
@echo " --- Compiled $*.F90 successfully ---"
@echo

.f90.o: Makefile
%.o: %.f90
$(FF90) $(FF90_ALL_FLAGS) -c $< -o $(OBJDIR)/$(@F)
@echo
@echo " --- Compiled $*.f90 successfully ---"
@echo

.f.o: Makefile
%.o: %.f
$(FF90) $(FF77_ALL_FLAGS) -c $< -o $(OBJDIR)/$(@F)
@echo
@echo " --- Compiled $*.f successfully ---"
@echo

.c.o: Makefile
%.o: %.c
$(CC) $(CC_ALL_FLAGS) -c $< -o $(OBJDIR)/$(@F)
@echo
@echo " --- Compiled $*.c successfully ---"
@echo


%.o : %.mod

0 comments on commit e90267a

Please sign in to comment.