Updated build method
parent
773e340770
commit
fea7fb3b54
36
.hgignore
36
.hgignore
|
@ -1,10 +1,26 @@
|
|||
syntax: glob
|
||||
Release\*
|
||||
Debug\*
|
||||
*.o
|
||||
RunTest
|
||||
SatTrack
|
||||
PassPredict
|
||||
*.txt
|
||||
*.orig
|
||||
*.a
|
||||
# Exact paths to config junk
|
||||
^INSTALL$
|
||||
^aclocal.m4$
|
||||
^configure$
|
||||
^(config.guess|config.sub|depcomp|install-sh|ltmain.sh|missing)$
|
||||
^config.(log|status)$
|
||||
^autom4te.cache$
|
||||
|
||||
# Build artifacts
|
||||
^libsgp4/libsgp4.a$
|
||||
^passpredict/passpredict$
|
||||
^runtest/runtest$
|
||||
^sattrack/sattrack$
|
||||
.(deps|libs)/*$
|
||||
.cmp$
|
||||
autom4te.cache/*$
|
||||
|
||||
Makefile(.in)?$
|
||||
.(deps|libs)$
|
||||
\.l?o$
|
||||
|
||||
# Merged files
|
||||
\.orig$
|
||||
|
||||
# Backup files
|
||||
.*~$
|
||||
|
|
55
Makefile
55
Makefile
|
@ -1,55 +0,0 @@
|
|||
CC=g++
|
||||
AR=ar
|
||||
|
||||
DEBUG ?= 0
|
||||
ifeq ($(DEBUG), 1)
|
||||
CFLAGS=-Wall -O0 -g -pedantic -Werror -Wextra -Wconversion
|
||||
else
|
||||
CFLAGS=-Wall -O2 -pedantic -Werror -Wextra -Wconversion -DNDEBUG
|
||||
endif
|
||||
|
||||
LDFLAGS=
|
||||
|
||||
SOURCES=Eci.cpp \
|
||||
Julian.cpp \
|
||||
Observer.cpp \
|
||||
OrbitalElements.cpp \
|
||||
SGP4.cpp \
|
||||
SolarPosition.cpp \
|
||||
Timespan.cpp \
|
||||
Tle.cpp \
|
||||
Util.cpp
|
||||
OBJECTS=$(SOURCES:.cpp=.o)
|
||||
SGP4LIB=libsgp4.a
|
||||
|
||||
TESTPROG=RunTest
|
||||
TESTPROGSOURCES=RunTest.cpp
|
||||
TESTPROGOBJECTS=$(TESTPROGSOURCES:.cpp=.o)
|
||||
|
||||
SATTRACK=SatTrack
|
||||
SATTRACKSOURCES=SatTrack.cpp
|
||||
SATTRACKOBJECTS=$(SATTRACKSOURCES:.cpp=.o)
|
||||
|
||||
PASSPREDICT=PassPredict
|
||||
PASSPREDICTSOURCES=PassPredict.cpp
|
||||
PASSPREDICTOBJECTS=$(PASSPREDICTSOURCES:.cpp=.o)
|
||||
|
||||
all: $(SGP4LIB) ${TESTPROG} ${SATTRACK} ${PASSPREDICT}
|
||||
|
||||
${SGP4LIB}: ${OBJECTS}
|
||||
${AR} rcs $@ ${OBJECTS}
|
||||
|
||||
${TESTPROG}: ${SGP4LIB} ${TESTPROGOBJECTS}
|
||||
$(CC) ${LDFLAGS} ${CFLAGS} ${TESTPROGOBJECTS} -static -L. -lsgp4 -o $@
|
||||
|
||||
${SATTRACK}: ${SGP4LIB} ${SATTRACKOBJECTS}
|
||||
${CC} ${LDFLAGS} ${CFLAGS} ${SATTRACKOBJECTS} -static -L. -lsgp4 -o $@
|
||||
|
||||
${PASSPREDICT}: ${SGP4LIB} ${PASSPREDICTOBJECTS}
|
||||
${CC} ${LDFLAGS} ${CFLAGS} ${PASSPREDICTOBJECTS} -static -L. -lsgp4 -o $@
|
||||
|
||||
.cpp.o:
|
||||
$(CC) -c $(CFLAGS) $< -o $@
|
||||
|
||||
clean:
|
||||
rm -rf *.o ${SGP4LIB} ${TESTPROG} ${SATTRACK} ${PASSPREDICT}
|
|
@ -0,0 +1 @@
|
|||
SUBDIRS = libsgp4 passpredict runtest sattrack
|
107
Rewrite.vcxproj
107
Rewrite.vcxproj
|
@ -1,107 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{FD8F49F4-DC34-430F-8D62-C3E9C6EE124F}</ProjectGuid>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
<RootNamespace>Rewrite</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="CoordGeodetic.cpp" />
|
||||
<ClCompile Include="CoordTopographic.cpp" />
|
||||
<ClCompile Include="Eci.cpp" />
|
||||
<ClCompile Include="Globals.cpp" />
|
||||
<ClCompile Include="Julian.cpp" />
|
||||
<ClCompile Include="Observer.cpp" />
|
||||
<ClCompile Include="RunTest.cpp" />
|
||||
<ClCompile Include="SGP4.cpp" />
|
||||
<ClCompile Include="SolarPosition.cpp" />
|
||||
<ClCompile Include="Timespan.cpp" />
|
||||
<ClCompile Include="Tle.cpp" />
|
||||
<ClCompile Include="Vector.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="CoordGeodetic.h" />
|
||||
<ClInclude Include="CoordTopographic.h" />
|
||||
<ClInclude Include="Eci.h" />
|
||||
<ClInclude Include="Globals.h" />
|
||||
<ClInclude Include="Julian.h" />
|
||||
<ClInclude Include="Observer.h" />
|
||||
<ClInclude Include="SatelliteException.h" />
|
||||
<ClInclude Include="SGP4.h" />
|
||||
<ClInclude Include="SolarPosition.h" />
|
||||
<ClInclude Include="Timespan.h" />
|
||||
<ClInclude Include="Tle.h" />
|
||||
<ClInclude Include="Vector.h" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
|
@ -1,93 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Filter Include="Source Files">
|
||||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Header Files">
|
||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Resource Files">
|
||||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
||||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="Julian.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="Vector.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="Globals.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="Tle.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="Observer.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="Eci.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="Timespan.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="SGP4.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="CoordGeodetic.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="CoordTopographic.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="RunTest.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="SolarPosition.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="Julian.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="Vector.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="Globals.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="Tle.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="SatelliteException.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="Observer.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="Eci.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="Timespan.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="SGP4.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="CoordGeodetic.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="CoordTopographic.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="SolarPosition.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
</Project>
|
|
@ -1,3 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
</Project>
|
|
@ -0,0 +1,35 @@
|
|||
AC_PREREQ([2.68])
|
||||
AC_INIT([sgp4], 1.0, [info@danrw.com])
|
||||
AM_INIT_AUTOMAKE
|
||||
AM_SILENT_RULES([yes])
|
||||
|
||||
AC_CONFIG_SRCDIR([libsgp4/Tle.cpp])
|
||||
|
||||
CFLAGS=" $CFLAGS"
|
||||
CXXFLAGS=" $CXXFLAGS"
|
||||
|
||||
AC_PROG_RANLIB
|
||||
AC_PROG_CXX
|
||||
|
||||
AC_ARG_ENABLE(debug,
|
||||
AC_HELP_STRING([--enable-debug],
|
||||
[build debug library (default=no)])
|
||||
,
|
||||
,
|
||||
enable_debug=no)
|
||||
|
||||
if test x$enable_debug = xyes; then
|
||||
AM_CXXFLAGS="-g -O0 -Wall -Werror"
|
||||
else
|
||||
AM_CXXFLAGS="-O2 -Wall -Werror -fomit-frame-pointer"
|
||||
fi
|
||||
|
||||
AC_SUBST(AM_CXXFLAGS)
|
||||
|
||||
AC_CONFIG_FILES([Makefile
|
||||
libsgp4/Makefile
|
||||
passpredict/Makefile
|
||||
runtest/Makefile
|
||||
sattrack/Makefile])
|
||||
|
||||
AC_OUTPUT
|
|
@ -0,0 +1,25 @@
|
|||
lib_LIBRARIES = libsgp4.a
|
||||
libsgp4_a_SOURCES = Tle.cpp \
|
||||
OrbitalElements.cpp \
|
||||
Observer.cpp \
|
||||
Timespan.cpp \
|
||||
Util.cpp \
|
||||
Eci.cpp \
|
||||
Julian.cpp \
|
||||
SGP4.cpp \
|
||||
SolarPosition.cpp
|
||||
include_HEADERS = CoordGeodetic.h \
|
||||
Eci.h \
|
||||
Julian.h \
|
||||
OrbitalElements.h \
|
||||
SatelliteException.h \
|
||||
Timespan.h \
|
||||
TleException.h \
|
||||
Vector.h \
|
||||
CoordTopographic.h \
|
||||
Globals.h \
|
||||
Observer.h \
|
||||
SGP4.h \
|
||||
SolarPosition.h \
|
||||
Tle.h \
|
||||
Util.h
|
|
@ -0,0 +1,4 @@
|
|||
bin_PROGRAMS = passpredict
|
||||
passpredict_SOURCES = passpredict.cpp
|
||||
passpredict_LDADD = ../libsgp4/libsgp4.a
|
||||
INCLUDES = -I../libsgp4
|
|
@ -1,6 +1,6 @@
|
|||
#include "Observer.h"
|
||||
#include "SGP4.h"
|
||||
#include "Util.h"
|
||||
#include <Observer.h>
|
||||
#include <SGP4.h>
|
||||
#include <Util.h>
|
||||
|
||||
#include <cmath>
|
||||
#include <iostream>
|
|
@ -0,0 +1,4 @@
|
|||
bin_PROGRAMS = runtest
|
||||
runtest_SOURCES = runtest.cpp
|
||||
runtest_LDADD = ../libsgp4/libsgp4.a
|
||||
INCLUDES = -I../libsgp4
|
|
@ -1,11 +1,11 @@
|
|||
#include "Julian.h"
|
||||
#include "Tle.h"
|
||||
#include "SGP4.h"
|
||||
#include "Globals.h"
|
||||
#include "Util.h"
|
||||
#include "Observer.h"
|
||||
#include "CoordGeodetic.h"
|
||||
#include "CoordTopographic.h"
|
||||
#include <Julian.h>
|
||||
#include <Tle.h>
|
||||
#include <SGP4.h>
|
||||
#include <Globals.h>
|
||||
#include <Util.h>
|
||||
#include <Observer.h>
|
||||
#include <CoordGeodetic.h>
|
||||
#include <CoordTopographic.h>
|
||||
|
||||
#include <list>
|
||||
#include <string>
|
|
@ -0,0 +1,4 @@
|
|||
bin_PROGRAMS = sattrack
|
||||
sattrack_SOURCES = sattrack.cpp
|
||||
sattrack_LDADD = ../libsgp4/libsgp4.a
|
||||
INCLUDES = -I../libsgp4
|
|
@ -1,5 +1,5 @@
|
|||
#include "Observer.h"
|
||||
#include "SGP4.h"
|
||||
#include <Observer.h>
|
||||
#include <SGP4.h>
|
||||
|
||||
#include <iostream>
|
||||
|
Loading…
Reference in New Issue