Skip to content
This repository has been archived by the owner on Aug 1, 2020. It is now read-only.
/ readsb Public archive

Commit

Permalink
Rename dump1090 source code files. Remove faup source.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mictronics committed Sep 2, 2019
1 parent dffff3d commit 08963e8
Show file tree
Hide file tree
Showing 23 changed files with 28 additions and 279 deletions.
11 changes: 4 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,22 +54,19 @@ ifeq ($(PLUTOSDR), yes)
LIBS_SDR += $(shell pkg-config --libs libiio libad9361)
endif

all: dump1090 view1090
all: readsb viewadsb

%.o: %.c *.h
$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@

dump1090: dump1090.o anet.o interactive.o mode_ac.o mode_s.o comm_b.o net_io.o crc.o demod_2400.o stats.o cpr.o icao_filter.o track.o util.o convert.o sdr_ifile.o sdr_beast.o sdr.o ais_charset.o $(SDR_OBJ) $(COMPAT)
readsb: readsb.o anet.o interactive.o mode_ac.o mode_s.o comm_b.o net_io.o crc.o demod_2400.o stats.o cpr.o icao_filter.o track.o util.o convert.o sdr_ifile.o sdr_beast.o sdr.o ais_charset.o $(SDR_OBJ) $(COMPAT)
$(CC) -g -o $@ $^ $(LDFLAGS) $(LIBS) $(LIBS_SDR) -lncurses

view1090: view1090.o anet.o interactive.o mode_ac.o mode_s.o comm_b.o net_io.o crc.o stats.o cpr.o icao_filter.o track.o util.o ais_charset.o $(COMPAT)
viewadsb: viewadsb.o anet.o interactive.o mode_ac.o mode_s.o comm_b.o net_io.o crc.o stats.o cpr.o icao_filter.o track.o util.o ais_charset.o $(COMPAT)
$(CC) -g -o $@ $^ $(LDFLAGS) $(LIBS) -lncurses

faup1090: faup1090.o anet.o mode_ac.o mode_s.o comm_b.o net_io.o crc.o stats.o cpr.o icao_filter.o track.o util.o ais_charset.o $(COMPAT)
$(CC) -g -o $@ $^ $(LDFLAGS) $(LIBS)

clean:
rm -f *.o compat/clock_gettime/*.o compat/clock_nanosleep/*.o dump1090 view1090 faup1090 cprtests crctests convert_benchmark
rm -f *.o compat/clock_gettime/*.o compat/clock_nanosleep/*.o dump1090 viewadsb convadsb cprtests crctests convert_benchmark

test: cprtests
./cprtests
Expand Down
2 changes: 1 addition & 1 deletion comm_b.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http:https://www.gnu.org/licenses/>.

#include "dump1090.h"
#include "readsb.h"
#include "ais_charset.h"

typedef int (*CommBDecoderFn)(struct modesMessage *, bool);
Expand Down
2 changes: 1 addition & 1 deletion convert.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http:https://www.gnu.org/licenses/>.

#include "dump1090.h"
#include "readsb.h"

struct converter_state {
float dc_a;
Expand Down
2 changes: 1 addition & 1 deletion crc.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http:https://www.gnu.org/licenses/>.

#include "dump1090.h"
#include "readsb.h"
#include <assert.h>

// Errorinfo for "no errors"
Expand Down
2 changes: 1 addition & 1 deletion demod_2400.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http:https://www.gnu.org/licenses/>.

#include "dump1090.h"
#include "readsb.h"
#include <assert.h>

#ifdef MODEAC_DEBUG
Expand Down
248 changes: 0 additions & 248 deletions faup1090.c

This file was deleted.

2 changes: 1 addition & 1 deletion icao_filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http:https://www.gnu.org/licenses/>.

#include "dump1090.h"
#include "readsb.h"

// hash table size, must be a power of two:
#define ICAO_FILTER_SIZE 4096
Expand Down
2 changes: 1 addition & 1 deletion interactive.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#include "dump1090.h"
#include "readsb.h"

#include <curses.h>

Expand Down
2 changes: 1 addition & 1 deletion mode_ac.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#include "dump1090.h"
#include "readsb.h"
#include <assert.h>
//
//=========================================================================
Expand Down
2 changes: 1 addition & 1 deletion mode_s.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


#include "dump1090.h"
#include "readsb.h"
#include "ais_charset.h"

/* for PRIX64 */
Expand Down
2 changes: 1 addition & 1 deletion net_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#include "dump1090.h"
#include "readsb.h"

/* for PRIX64 */
#include <inttypes.h>
Expand Down
4 changes: 2 additions & 2 deletions dump1090.c → readsb.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Part of readsb, a Mode-S/ADSB/TIS message decoder.
//
// dump1090.c: main program & miscellany
// readsb.c: main program & miscellany
//
// Copyright (c) 2019 Michael Wolf <[email protected]>
//
Expand Down Expand Up @@ -52,7 +52,7 @@
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#define DUMP1090
#include "dump1090.h"
#include "readsb.h"
#include "help.h"

#include <stdarg.h>
Expand Down
2 changes: 1 addition & 1 deletion dump1090.h → readsb.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Part of readsb, a Mode-S/ADSB/TIS message decoder.
//
// dump1090.h: main program header
// readsb.h: main program header
//
// Copyright (c) 2019 Michael Wolf <[email protected]>
//
Expand Down
2 changes: 1 addition & 1 deletion sdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http:https://www.gnu.org/licenses/>.

#include "dump1090.h"
#include "readsb.h"

#include "sdr_ifile.h"
#ifdef ENABLE_RTLSDR
Expand Down
2 changes: 1 addition & 1 deletion sdr_beast.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
// along with this program. If not, see <http:https://www.gnu.org/licenses/>.

#include <termios.h>
#include "dump1090.h"
#include "readsb.h"
#include "sdr_beast.h"

static struct {
Expand Down
Loading

0 comments on commit 08963e8

Please sign in to comment.