Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,18 @@ LDLIBS+=$(shell pkg-config --libs librtlsdr) -lpthread -lm
CC?=gcc
PROGNAME=dump1090

all: dump1090
OBJDIR ?= .
VPATH := .

%.o: %.c
$(CC) $(CFLAGS) -c $<
OBJS = $(OBJDIR)/dump1090.o $(OBJDIR)/anet.o

dump1090: dump1090.o anet.o
$(CC) -g -o dump1090 dump1090.o anet.o $(LDFLAGS) $(LDLIBS)
all: $(PROGNAME)

$(OBJDIR)/%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@

$(PROGNAME): $(OBJS)
$(CC) -g -o $(OBJDIR)/$(PROGNAME) $(OBJS) $(LDFLAGS) $(LDLIBS)

clean:
rm -f *.o dump1090
rm -f $(OBJDIR)/*.o $(OBJDIR)/$(PROGNAME)
3 changes: 2 additions & 1 deletion dump1090.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,9 @@ void modesInitConfig(void) {
Modes.interactive_rows = MODES_INTERACTIVE_ROWS;
Modes.interactive_ttl = MODES_INTERACTIVE_TTL;
Modes.aggressive = 0;
# if(!QNX)
Modes.interactive_rows = getTermRows();
#endif
Modes.loop = 0;
}

Expand Down Expand Up @@ -1830,7 +1832,6 @@ void interactiveShowData(void) {
memset(progress,' ',3);
progress[time(NULL)%3] = '.';
progress[3] = '\0';

printf("\x1b[H\x1b[2J"); /* Clear the screen */
printf(
"Hex Flight Altitude Speed Lat Lon Track Messages Seen %s\n"
Expand Down