diff --git a/Time/Makefile.am b/Time/Makefile.am index 11a9e2976..f2916865a 100644 --- a/Time/Makefile.am +++ b/Time/Makefile.am @@ -3,9 +3,9 @@ libdir = ${exec_prefix}/lib lib_LTLIBRARIES = libTime.la libTime_la_SOURCES = \ - event.c event.h \ - fg_time.c fg_time.h \ - fg_timer.c fg_timer.h \ + event.cxx event.hxx \ + fg_time.cxx fg_time.hxx \ + fg_timer.cxx fg_timer.hxx \ light.cxx light.hxx \ sunpos.cxx sunpos.hxx diff --git a/Time/Makefile.in b/Time/Makefile.in index 1ae8bef1d..26d1350e8 100644 --- a/Time/Makefile.in +++ b/Time/Makefile.in @@ -75,9 +75,9 @@ libdir = ${exec_prefix}/lib lib_LTLIBRARIES = libTime.la libTime_la_SOURCES = \ - event.c event.h \ - fg_time.c fg_time.h \ - fg_timer.c fg_timer.h \ + event.cxx event.hxx \ + fg_time.cxx fg_time.hxx \ + fg_timer.cxx fg_timer.hxx \ light.cxx light.hxx \ sunpos.cxx sunpos.hxx mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs @@ -101,10 +101,6 @@ CXXFLAGS = @CXXFLAGS@ CXXCOMPILE = $(CXX) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CXXFLAGS) CXXLINK = $(LIBTOOL) --mode=link $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ -CFLAGS = @CFLAGS@ -COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) -LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@ DIST_COMMON = Makefile.am Makefile.in diff --git a/Time/event.c b/Time/event.cxx similarity index 95% rename from Time/event.c rename to Time/event.cxx index 75febe3dc..823363483 100644 --- a/Time/event.c +++ b/Time/event.cxx @@ -24,7 +24,9 @@ **************************************************************************/ -#include +#ifdef HAVE_CONFIG_H +# include +#endif #include #include @@ -39,10 +41,11 @@ /* contains milliseconds */ #endif -#include "fg_time.h" - #include -#include