f3b5167a0a
Create separate makefiles for dump1090, view1090 and ppup1090. These can be run with the command line "make -f makedump1090", "make -f makeview1019" and "make -f makeppup1090" Pass dump1090 version number into ppup1090 uploader so that coaa1090.obj doesn't need re-compiling between versions. Remove ppup1090 from general Makefile - it's not intended for anything other than RPi, so gives linker errors on other (non Linux raspian) systems.
28 lines
659 B
Plaintext
28 lines
659 B
Plaintext
#
|
|
# When building a package or installing otherwise in the system, make
|
|
# sure that the variable PREFIX is defined, e.g. make PREFIX=/usr/local
|
|
#
|
|
PROGNAME=ppup1090
|
|
|
|
ifdef PREFIX
|
|
BINDIR=$(PREFIX)/bin
|
|
SHAREDIR=$(PREFIX)/share/$(PROGNAME)
|
|
EXTRACFLAGS=-DHTMLPATH=\"$(SHAREDIR)\"
|
|
endif
|
|
|
|
CFLAGS=-O2 -g -Wall -W `pkg-config --cflags librtlsdr`
|
|
LIBS=`pkg-config --libs librtlsdr` -lpthread -lm
|
|
CC=gcc
|
|
|
|
|
|
all: ppup1090
|
|
|
|
%.o: %.c
|
|
$(CC) $(CFLAGS) $(EXTRACFLAGS) -c $<
|
|
|
|
ppup1090: ppup1090.o anet.o interactive.o mode_ac.o mode_s.o net_io.o
|
|
$(CC) -g -o ppup1090 ppup1090.o anet.o interactive.o mode_ac.o mode_s.o net_io.o coaa1090.obj $(LIBS)
|
|
|
|
clean:
|
|
rm -f *.o ppup1090
|