forked from keenerd/rtl-sdr-misc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request keenerd#2 from nunojpg/master
Clean source and add Makefile
- Loading branch information
Showing
30 changed files
with
26 additions
and
1,672 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
CFLAGS?=-O2 -g -Wall -W $(shell pkg-config --cflags librtlsdr) | ||
CFLAGS+= -I./aisdecoder -I ./aisdecoder/lib | ||
LDFLAGS+=$(shell pkg-config --libs librtlsdr) -lpthread -lm | ||
CC?=gcc | ||
SOURCES= \ | ||
rtl_ais.c convenience.c \ | ||
./aisdecoder/aisdecoder.c \ | ||
./aisdecoder/sounddecoder.c \ | ||
./aisdecoder/lib/receiver.c \ | ||
./aisdecoder/lib/protodec.c \ | ||
./aisdecoder/lib/hmalloc.c \ | ||
./aisdecoder/lib/filter.c | ||
|
||
OBJECTS=$(SOURCES:.c=.o) | ||
EXECUTABLE=rtl_ais | ||
|
||
all: $(SOURCES) $(EXECUTABLE) | ||
|
||
$(EXECUTABLE): $(OBJECTS) | ||
$(CC) $(OBJECTS) -o $@ $(LDFLAGS) | ||
|
||
.c.o: | ||
$(CC) -c $< -o $@ $(CFLAGS) | ||
|
||
clean: | ||
rm -f $(OBJECTS) $(EXECUTABLE) |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.