viz1090/sdl1090/Makefile
nathan 7449d7b066 added wiringPi exit button, compiler and SDL fixed for PI (need to add defines to allow compiling on PC again
Former-commit-id: 70c389508541a37a398075674b042204cd9037cb
Former-commit-id: e2b2550c65c66b5053e83c4f61d36eb369ce424f
2017-09-05 09:41:46 +00:00

28 lines
783 B
Makefile

#
# 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=dump1090
ifdef PREFIX
BINDIR=$(PREFIX)/bin
SHAREDIR=$(PREFIX)/share/$(PROGNAME)
EXTRACFLAGS=-DHTMLPATH=\"$(SHAREDIR)\"
endif
CFLAGS=-O2 -g -Wall -W `pkg-config --cflags librtlsdr` -std=c99
LIBS=`pkg-config --libs librtlsdr` -lpthread -lm `sdl-config --libs` -lSDL -lSDL_ttf -lSDL_gfx -lwiringPi
CC=gcc
all: view1090
%.o: %.c
$(CC) $(CFLAGS) $(EXTRACFLAGS) -c $<
view1090: view1090.o anet.o interactive.o mode_ac.o mode_s.o net_io.o input.o draw.o font.o init.o
$(CC) -g -o view1090 view1090.o anet.o interactive.o mode_ac.o mode_s.o net_io.o input.o draw.o font.o init.o $(LIBS) $(LDFLAGS)
clean:
rm -f *.o view1090