kopia lustrzana https://github.com/dgiardini/rtl-ais
add minimal support for MSys
rodzic
877af1d689
commit
d1084f6514
24
Makefile
24
Makefile
|
|
@ -1,6 +1,26 @@
|
|||
CFLAGS?=-O2 -g -Wall -W $(shell pkg-config --cflags librtlsdr)
|
||||
CFLAGS?=-O2 -g -Wall -W
|
||||
CFLAGS+= -I./aisdecoder -I ./aisdecoder/lib
|
||||
LDFLAGS+=$(shell pkg-config --libs librtlsdr) -lpthread -lm
|
||||
LDFLAGS+=-lpthread -lm
|
||||
|
||||
UNAME := $(shell uname)
|
||||
ifeq ($(UNAME),Linux)
|
||||
|
||||
#Conditional for Linux
|
||||
CFLAGS+= $(shell pkg-config --cflags librtlsdr)
|
||||
LDFLAGS+=$(shell pkg-config --libs librtlsdr)
|
||||
|
||||
else
|
||||
|
||||
#Conditional for Windows
|
||||
#### point this to your correct path ###
|
||||
RTLSDR_PATH="/c/tmp/rtl-sdr/"
|
||||
RTLSDR_LIB=$(RTLSDR_PATH)/build/src/
|
||||
########################################
|
||||
CFLAGS+=-I $(RTLSDR_PATH)/include
|
||||
LDFLAGS+=-L $(RTLSDR_LIB) -L/usr/lib -lusb-1.0 -lrtlsdr -lWs2_32
|
||||
|
||||
endif
|
||||
|
||||
CC?=gcc
|
||||
SOURCES= \
|
||||
rtl_ais.c convenience.c \
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue