Skip to content

Commit

Permalink
remove garbage from makefiles
Browse files Browse the repository at this point in the history
Including
  * unused FLAGS variables
  * All: lib that did not work
  * stray blank lines etc

Commit-type: housekeeping
/spend 1h
  • Loading branch information
BarrySmith committed May 7, 2022
1 parent 2961357 commit f97672e
Show file tree
Hide file tree
Showing 831 changed files with 256 additions and 2,814 deletions.
7 changes: 1 addition & 6 deletions include/makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@

CFLAGS =
FFLAGS =
SOURCEC =
SOURCEF =
SOURCEH = petsc.h petscsys.h petscmath.h petscmatlab.h petscbt.h \
petscversion.h petscviewerhdf5.h \
petscviewersaws.h petscwebclient.h petscblaslapack.h \
petscsystypes.h petscdevicetypes.h petscdevice.h petscmacros.h
SOURCEH = petsc.h petscsys.h petscmath.h petscmatlab.h petscbt.h petscversion.h petscviewerhdf5.h petscviewersaws.h petscwebclient.h petscblaslapack.h petscsystypes.h petscdevicetypes.h petscdevice.h petscmacros.h
LIBBASE = libpetscvec
DIRS = petsc/finclude petsc/private
LOCDIR = include/
Expand Down
2 changes: 0 additions & 2 deletions include/petsc/finclude/makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#requiresdefine 'PETSC_HAVE_FORTRAN'

CFLAGS =
FFLAGS =
SOURCEC =
SOURCEF =
SOURCEH = petsc.h petscsys.h petsclog.h petscvec.h petscsnes.h petscdm.h petscdmda.h \
Expand Down
13 changes: 1 addition & 12 deletions include/petsc/private/makefile
Original file line number Diff line number Diff line change
@@ -1,18 +1,7 @@

CFLAGS =
FFLAGS =
SOURCEC =
SOURCEF =
SOURCEH = bagimpl.h characteristicimpl.h dmdaimpl.h dmforestimpl.h \
dmimpl.h dmlabelimpl.h dmmbimpl.h dmnetworkimpl.h dmpatchimpl.h \
dmpleximpl.h dmswarmimpl.h drawimpl.h dtimpl.h f90impl.h \
fortranimpl.h isimpl.h kspimpl.h linesearchimpl.h logimpl.h \
matimpl.h matorderimpl.h pcgamgimpl.h pcimpl.h pcmgimpl.h \
petscdsimpl.h petscfeimpl.h petscfptimpl.h petscfvimpl.h petscimpl.h \
sfimpl.h snesimpl.h taoimpl.h taolinesearchimpl.h tsimpl.h vecimpl.h \
tshistoryimpl.h \
hashtable.h hashmap.h hashset.h \
viewerimpl.h viewerhdf5impl.h partitionerimpl.h
SOURCEH = bagimpl.h characteristicimpl.h dmdaimpl.h dmforestimpl.h dmimpl.h dmlabelimpl.h dmmbimpl.h dmnetworkimpl.h dmpatchimpl.h dmplexim pl.h dmswarmimpl.h drawimpl.h dtimpl.h f90impl.h fortranimpl.h isimpl.h kspimpl.h linesearchimpl.h logimpl.h matimpl.h matorderimpl.h pcgamgimpl.h pcimpl.h pcmgimpl.h petscdsimpl.h petscfeimpl.h petscfptimpl.h petscfvimpl.h petscimpl.h sfimpl.h snesimpl.h taoimpl.h taolinesearchimpl.h tsimpl.h vecimpl.h tshistoryimpl.h hashtable.h hashmap.h hashset.h viewerimpl.h viewerhdf5impl.h partitionerimpl.h
LIBBASE = libpetscvec
DIRS =
LOCDIR = include/petsc/private/
Expand Down
5 changes: 0 additions & 5 deletions interfaces/lua/makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
-include ../../petscdir.mk
#requirespackage 'PETSC_HAVE_LUA'
ALL: lib

CFLAGS =
FFLAGS =
CPPFLAGS =
SOURCEC =
SOURCEF =
SOURCEH =
MANSEC = Sys
Expand Down
4 changes: 0 additions & 4 deletions interfaces/lua/src/makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
-include ../../../petscdir.mk
ALL: lib

CFLAGS =
FFLAGS =
CPPFLAGS =
SOURCEC = luasrc.c
SOURCEF =
SOURCEH =
Expand Down
4 changes: 0 additions & 4 deletions interfaces/makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
-include ../petscdir.mk
ALL: lib

CFLAGS =
FFLAGS =
CPPFLAGS =
SOURCEC =
SOURCEF =
SOURCEH =
Expand Down
4 changes: 0 additions & 4 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
ALL: all
LOCDIR = ./
DIRS = src include tutorials interfaces share/petsc/matlab
CFLAGS =
FFLAGS =
CPPFLAGS =
FPPFLAGS =

# next line defines PETSC_DIR and PETSC_ARCH if they are not set
include ././${PETSC_ARCH}/lib/petsc/conf/petscvariables
Expand Down
22 changes: 9 additions & 13 deletions src/benchmarks/makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@

ALL:

CFLAGS =
FFLAGS =
CPPFLAGS =
FPPFLAGS =
LOCDIR = src/benchmarks/
EXAMPLESC = PetscTime.c PetscGetTime.c MPI_Wtime.c PLogEvent.c PetscMalloc.c \
PetscMemcpy.c PetscMemzero.c PetscMemcmp.c Index.c PetscVecNorm.c \
PetscGetCPUTime.c
EXAMPLESF =
TESTS = PetscTime PetscGetTime MPI_Wtime PLogEvent PetscMalloc \
PetscMemcpy PetscMemzero PetscMemcmp Index PetscVecNorm \
PetscGetCPUTime sizeof
MANSEC = Sys
LOCDIR = src/benchmarks/
EXAMPLESC = PetscTime.c PetscGetTime.c MPI_Wtime.c PLogEvent.c PetscMalloc.c \
PetscMemcpy.c PetscMemzero.c PetscMemcmp.c Index.c PetscVecNorm.c \
PetscGetCPUTime.c
EXAMPLESF =
TESTS = PetscTime PetscGetTime MPI_Wtime PLogEvent PetscMalloc \
PetscMemcpy PetscMemzero PetscMemcmp Index PetscVecNorm \
PetscGetCPUTime sizeof
MANSEC = Sys

include ${PETSC_DIR}/lib/petsc/conf/variables
include ${PETSC_DIR}/lib/petsc/conf/rules
Expand Down
5 changes: 1 addition & 4 deletions src/benchmarks/streams/makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
-include ../../../petscdir.mk
CFLAGS =
FFLAGS =
CPPFLAGS =
FPPFLAGS =

LOCDIR = src/benchmarks/streams/
EXAMPLESC = BasicVersion.c MPIVersion.c OpenMPVersion.c SSEVersion.c PthreadVersion.c CUDAVersion.cu
EXAMPLESF =
Expand Down
3 changes: 0 additions & 3 deletions src/dm/dt/dualspace/impls/lagrange/makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
-include ../../../../../../petscdir.mk
ALL: lib

CFLAGS =
FFLAGS =
SOURCEC = dspacelagrange.c
SOURCEF =
LIBBASE = libpetscdm
Expand Down
6 changes: 1 addition & 5 deletions src/dm/dt/dualspace/impls/lagrange/tests/makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@

CFLAGS =
FFLAGS =
CPPFLAGS =
FPPFLAGS =
LOCDIR = src/dm/dt/dualspace/impls/lagrange/tests/
EXAMPLESC =
EXAMPLESC =
EXAMPLESF =
MANSEC = DM

Expand Down
6 changes: 1 addition & 5 deletions src/dm/dt/dualspace/impls/lagrange/tutorials/makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@

CFLAGS =
FFLAGS =
CPPFLAGS =
FPPFLAGS =
LOCDIR = src/dm/dt/dualspace/impls/lagrange/tutorials/
EXAMPLESC =
EXAMPLESC =
EXAMPLESF =
MANSEC = DM

Expand Down
1 change: 0 additions & 1 deletion src/dm/dt/dualspace/impls/makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
-include ../../../../../petscdir.mk
ALL: lib

LIBBASE = libpetscdm
DIRS = lagrange simple refined
Expand Down
3 changes: 0 additions & 3 deletions src/dm/dt/dualspace/impls/refined/makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
-include ../../../../../../petscdir.mk
ALL: lib

CFLAGS =
FFLAGS =
SOURCEC = dualspacerefined.c
SOURCEF =
LIBBASE = libpetscdm
Expand Down
3 changes: 0 additions & 3 deletions src/dm/dt/dualspace/impls/simple/makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
-include ../../../../../../petscdir.mk
ALL: lib

CFLAGS =
FFLAGS =
SOURCEC = dspacesimple.c
SOURCEF =
LIBBASE = libpetscdm
Expand Down
3 changes: 0 additions & 3 deletions src/dm/dt/dualspace/interface/makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
-include ../../../../../petscdir.mk
ALL: lib

CFLAGS =
FFLAGS =
SOURCEC = dualspace.c
SOURCEF =
SOURCEH =
Expand Down
1 change: 0 additions & 1 deletion src/dm/dt/dualspace/makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
-include ../../../../petscdir.mk
ALL: lib

SOURCEH = ../../../../include/petscdt.h ../../../../include/petscfe.h ../../../../include/petscfetypes.h
DIRS = interface impls
Expand Down
3 changes: 0 additions & 3 deletions src/dm/dt/fe/impls/basic/makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
-include ../../../../../../petscdir.mk
ALL: lib

CFLAGS =
FFLAGS =
SOURCEC = febasic.c
SOURCEF =
LIBBASE = libpetscdm
Expand Down
3 changes: 0 additions & 3 deletions src/dm/dt/fe/impls/composite/makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
-include ../../../../../../petscdir.mk
ALL: lib

CFLAGS =
FFLAGS =
SOURCEC = fecomposite.c
SOURCEF =
LIBBASE = libpetscdm
Expand Down
1 change: 0 additions & 1 deletion src/dm/dt/fe/impls/makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
-include ../../../../../petscdir.mk
ALL: lib

LIBBASE = libpetscdm
DIRS = basic opencl composite
Expand Down
4 changes: 0 additions & 4 deletions src/dm/dt/fe/impls/opencl/makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
-include ../../../../../../petscdir.mk
#requirespackage 'PETSC_HAVE_OPENCL'

ALL: lib

CFLAGS =
FFLAGS =
SOURCEC = feopencl.c
SOURCEF =
LIBBASE = libpetscdm
Expand Down
4 changes: 1 addition & 3 deletions src/dm/dt/fe/interface/ftn-custom/makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
-include ../../../../../../petscdir.mk
#requiresdefine 'PETSC_HAVE_FORTRAN'
ALL: lib
CFLAGS =
FFLAGS =

SOURCEC = zfef.c
SOURCEF =
SOURCEH =
Expand Down
3 changes: 0 additions & 3 deletions src/dm/dt/fe/interface/makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
-include ../../../../../petscdir.mk
ALL: lib

CFLAGS =
FFLAGS =
SOURCEC = fe.c fegeom.c feceed.c
SOURCEF =
SOURCEH =
Expand Down
1 change: 0 additions & 1 deletion src/dm/dt/fe/makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
-include ../../../../petscdir.mk
ALL: lib

SOURCEH = ../../../../include/petscdt.h ../../../../include/petscfe.h ../../../../include/petscfetypes.h
DIRS = interface impls tests
Expand Down
4 changes: 0 additions & 4 deletions src/dm/dt/fe/tests/makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@

CFLAGS =
FFLAGS =
CPPFLAGS =
FPPFLAGS =
LOCDIR = src/dm/dt/fe/tests/
MANSEC = DM

Expand Down
4 changes: 1 addition & 3 deletions src/dm/dt/fv/interface/ftn-custom/makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
-include ../../../../../../petscdir.mk
#requiresdefine 'PETSC_HAVE_FORTRAN'
ALL: lib
CFLAGS =
FFLAGS =

SOURCEC = zfvf.c
SOURCEF =
SOURCEH =
Expand Down
3 changes: 0 additions & 3 deletions src/dm/dt/fv/interface/makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
-include ../../../../../petscdir.mk
ALL: lib

CFLAGS =
FFLAGS =
SOURCEC = fv.c
SOURCEF =
SOURCEH =
Expand Down
1 change: 0 additions & 1 deletion src/dm/dt/fv/makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
-include ../../../../petscdir.mk
ALL: lib

SOURCEH = ../../../../include/petscfv.h ../../../../include/petscfvtypes.h
DIRS = interface
Expand Down
3 changes: 0 additions & 3 deletions src/dm/dt/interface/f90-custom/makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
-include ../../../../../petscdir.mk
#requiresdefine 'PETSC_HAVE_FORTRAN'
ALL: lib

CFLAGS =
FFLAGS =
SOURCEC = zdtf90.c zdtdsf90.c
SOURCEF =
SOURCEH =
Expand Down
4 changes: 0 additions & 4 deletions src/dm/dt/interface/ftn-custom/makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
-include ../../../../../petscdir.mk
#requiresdefine 'PETSC_HAVE_FORTRAN'

ALL: lib

CFLAGS =
FFLAGS =
SOURCEC = zdsf.c zdtf.c zdtfef.c
SOURCEF =
SOURCEH =
Expand Down
3 changes: 0 additions & 3 deletions src/dm/dt/interface/makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
-include ../../../../petscdir.mk
ALL: lib

CFLAGS =
FFLAGS =
SOURCEC = dt.c dtds.c dtaltv.c dtweakform.c dtprob.c
SOURCEF =
SOURCEH =
Expand Down
1 change: 0 additions & 1 deletion src/dm/dt/makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
-include ../../../petscdir.mk
ALL: lib

SOURCEH = ../../../include/petscdt.h ../../../include/petscds.h ../../../include/petscdstypes.h
DIRS = interface tests space dualspace fe fv
Expand Down
1 change: 0 additions & 1 deletion src/dm/dt/space/impls/makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
-include ../../../../../petscdir.mk
ALL: lib

LIBBASE = libpetscdm
DIRS = poly ptrimmed tensor point subspace sum wxy
Expand Down
3 changes: 0 additions & 3 deletions src/dm/dt/space/impls/point/makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
-include ../../../../../../petscdir.mk
ALL: lib

CFLAGS =
FFLAGS =
SOURCEC = spacepoint.c
SOURCEF =
LIBBASE = libpetscdm
Expand Down
3 changes: 0 additions & 3 deletions src/dm/dt/space/impls/poly/makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
-include ../../../../../../petscdir.mk
ALL: lib

CFLAGS =
FFLAGS =
SOURCEC = spacepoly.c
SOURCEF =
LIBBASE = libpetscdm
Expand Down
3 changes: 0 additions & 3 deletions src/dm/dt/space/impls/ptrimmed/makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
-include ../../../../../../petscdir.mk
ALL: lib

CFLAGS =
FFLAGS =
SOURCEC = spaceptrimmed.c
SOURCEF =
LIBBASE = libpetscdm
Expand Down
6 changes: 1 addition & 5 deletions src/dm/dt/space/impls/ptrimmed/tests/makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@

CFLAGS =
FFLAGS =
CPPFLAGS =
FPPFLAGS =
LOCDIR = src/dm/dt/space/impls/ptrimmed/tests/
EXAMPLESC =
EXAMPLESC =
EXAMPLESF =
MANSEC = DM

Expand Down
3 changes: 0 additions & 3 deletions src/dm/dt/space/impls/subspace/makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
-include ../../../../../../petscdir.mk
ALL: lib

CFLAGS =
FFLAGS =
SOURCEC = spacesubspace.c
SOURCEF =
LIBBASE = libpetscdm
Expand Down
4 changes: 0 additions & 4 deletions src/dm/dt/space/impls/sum/makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@

ALL: lib

CFLAGS =
FFLAGS =
SOURCEC = spacesum.c
SOURCEF =
LIBBASE = libpetscdm
Expand Down
3 changes: 0 additions & 3 deletions src/dm/dt/space/impls/tensor/makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
-include ../../../../../../petscdir.mk
ALL: lib

CFLAGS =
FFLAGS =
SOURCEC = spacetensor.c
SOURCEF =
LIBBASE = libpetscdm
Expand Down
Loading

0 comments on commit f97672e

Please sign in to comment.