-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,5 +17,5 @@ config.status | |
tests/Makefile | ||
*.tar.gz | ||
datetime-fortran.pc | ||
tests/datetime_tests | ||
src/tests/datetime_tests | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Milan Curcic <mcurcic@wavebitscientific.com> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Milan Curcic <mcurcic@wavebitscientific.com> | ||
Bjoern Hendrik Fock <bjoern.fock@uni-hamburg.de> | ||
Marco Galli <marcofgalli@gmail.com> | ||
Huziy Oleksandr Sasha <https://github.com/guziy> | ||
Mark Carter <alt.mcarter@gmail.com> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,6 @@ | ||
#libdatetime_la_SOURCES = datetime.f90 | ||
|
||
AM_FCFLAGS = -Wall -O0 -C -fbacktrace | ||
|
||
# Note that we specify '.' first to ensure this dir is build before tests | ||
SUBDIRS = . tests | ||
SUBDIRS = src/lib src/tests | ||
|
||
pkgconfig_DATA = datetime-fortran.pc | ||
|
||
#datetime_SOURCES = datetime.f90 | ||
lib_LIBRARIES = libdatetime.a | ||
#datetime_moduledir = $(libdir) | ||
#datetime_module_LIBRARIES = datetime_module.mod | ||
|
||
libdatetime_a_SOURCES = datetime.f90 | ||
|
||
datetime_module.mod datetime.o : datetime.f90 | ||
$(FC) -c datetime.f90 | ||
|
||
libdatetime.a : datetime.o | ||
ar r libdatetime.a datetime.o | ||
|
||
CLEANFILES =*.mod datetime-fortran.pc | ||
|
||
#MAINTAINERCLEANFILES = *.gz aclocal.m4 depcomp install.sh missing \ | ||
# autoscan.log Makefile.in test-driver | ||
|
||
scrub-clean : | ||
scrub-clean.sh | ||
|
||
|
||
install-exec-hook : datetime_module.mod | ||
cp datetime_module.mod $(libdir) | ||
|
||
uninstall-hook : | ||
rm $(libdir)/datetime_module.mod |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
AC_PREREQ([2.69]) | ||
AC_INIT([datetime-fortran], [1.2.0T]) | ||
AC_CONFIG_SRCDIR([datetime.f90]) | ||
AC_INIT([datetime-fortran], [1.3.0T]) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
blippy
|
||
AC_CONFIG_SRCDIR([src/lib/datetime.f90]) | ||
|
||
# foreign flag tells that we are not conforming to the GNU standards | ||
# and hence can ommit NEWS, README, COPYING | ||
|
@@ -14,7 +14,7 @@ PKG_INSTALLDIR | |
AC_PROG_FC([gfortran], [Fortran 90]) # we need a Fortran 90 compiler | ||
AC_PROG_RANLIB # needed to create libraries | ||
|
||
AC_CONFIG_FILES([Makefile tests/Makefile]) | ||
AC_CONFIG_FILES([Makefile src/lib/Makefile src/tests/Makefile]) | ||
# Generate a PC file so that others can easily detect our libraries: | ||
AC_CONFIG_FILES([datetime-fortran.pc:datetime-fortran.pc.in]) | ||
|
||
|
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Items needed specifically by autotools | ||
AM_FCFLAGS = -Wall -O0 -C -fbacktrace | ||
|
||
lib_LIBRARIES = libdatetime.a | ||
|
||
libdatetime_a_SOURCES = datetime.f90 mod_datetime.f90 mod_timedelta.f90 \ | ||
mod_strftime.f90 mod_clock.f90 mod_constants.f90 | ||
|
||
CLEANFILES = *.mod | ||
|
||
# Mostly unchanged from original upstream Makefile | ||
OBJS = datetime.o mod_clock.o mod_datetime.o mod_timedelta.o mod_strftime.o mod_constants.o | ||
|
||
.f90.o: | ||
$(FC) -c $(AM_FCFLAGS) $< | ||
|
||
libdatetime.a : datetime.o | ||
ar ruv libdatetime.a $(OBJS) | ||
|
||
datetime_module.mod : datetime.o | ||
|
||
install-exec-hook : datetime_module.mod | ||
cp datetime_module.mod $(libdir) | ||
|
||
uninstall-hook : | ||
rm $(libdir)/datetime_module.mod | ||
|
||
datetime.o : datetime.f90 mod_clock.o mod_datetime.o mod_strftime.o mod_timedelta.o | ||
mod_clock.o: mod_clock.f90 mod_datetime.o mod_timedelta.o | ||
mod_datetime.o: mod_datetime.f90 mod_constants.o mod_strftime.o mod_timedelta.o | ||
mod_timedelta.o: mod_timedelta.f90 | ||
mod_strftime.o: mod_strftime.f90 | ||
mod_constants.o: mod_constants.f90 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,25 @@ | ||
# Items needed specifically by autotools | ||
AM_FCFLAGS = -Wall -O0 -C -fbacktrace | ||
|
||
# we use `check' to denote that we don't want them installed | ||
noinst_PROGRAMS = datetime_tests | ||
#TESTS=datetime_tests | ||
#datetime_tests_SOURCES = datetime_tests | ||
|
||
datetime_tests_SOURCES = datetime_tests.f90 | ||
|
||
datetime_tests$(EXEEXT) : datetime_tests.f90 ../datetime_module.mod | ||
$(FC) -I.. $< -o $@ -L.. -ldatetime | ||
#datetime_tests$(EXEEXT) : datetime_tests.f90 ../datetime_module.mod | ||
# $(FC) -I.. $< -o $@ -L.. -ldatetime | ||
|
||
CLEANFILES = *.mod | ||
|
||
# Mostly unchanged from original upstream Makefile | ||
LIB = ../lib | ||
INCLUDE = ../lib | ||
|
||
|
||
OBJ = datetime_tests.o | ||
|
||
.f90.o: | ||
$(FC) -c $(AM_FCFLAGS) -I$(INCLUDE) $< | ||
|
||
datetime_tests$(EXEEXT): datetime_tests.o | ||
$(FC) $(FCFLAGS) $(OBJ) -L$(LIB) -ldatetime -o $@ | ||
|
This file was deleted.
@blippy Does this line set the version number of the project? What is the "T" about? Is there anyway that this could get populated via
git describe ...
so it doesn't need to be updated each time the project is tagged?