This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Isaac Hagedorn
committed
Jan 23, 2022
1 parent
9014549
commit 86efbcb
Showing
86 changed files
with
897 additions
and
3,394 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
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
Binary file not shown.
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 |
---|---|---|
@@ -1,20 +1,22 @@ | ||
# Compiler Option | ||
CC = g++ | ||
WARNING = -Wall -Wshadow --pedantic | ||
ERROR = -Wvla -Werror | ||
GCC = g++ -std=c++11 -lstdc++ -lm | ||
PKG_CONFIG = pkg-config | ||
CFLAGS = -g $(WARNING) $(ERROR) $(shell $(PKG_CONFIG) --cflags libserialport) | ||
LIBS = $(shell $(PKG_CONFIG) --libs libserialport) | ||
|
||
# Compiler Flags | ||
CFLAGS = -g -Wall | ||
TESTFLAGS = -DDEBUG=1 | ||
TESTFLAGS = -DDEBUG=1 -DDEBUG_TX=1 -DDEBUG_RX=1 | ||
SOURCES = $(wildcard *.cpp) | ||
|
||
default: all | ||
BINARIES = $(SOURCES:.cpp=) | ||
|
||
all: amp_serial_jetson.o libserialport-0.1.0/serialport.o libserialport-0.1.0/linux_termios.o | ||
$(CC) $(CFLAGS) $(TESTFLAGS) -o amp_serial_jetson amp_serial_jetson.o libserialport-0.1.0/serialport.o libserialport-0.1.0/linux_termios.o -ludev | ||
%: %.cpp | ||
$(GCC) $(CFLAGS) $< $(LIBS) -o $@ | ||
|
||
amp_serial_jetson.o: amp_serial_jetson.cpp amp_serial_jetson.h util.h amp_err.h | ||
$(CC) $(CFLAGS) $(TESTFLAGS) -c amp_serial_jetson.cpp | ||
debug_%: %.cpp | ||
$(GCC) $(CFLAGS) $(TESTFLAGS) $< $(LIBS) -o $@ | ||
|
||
sample_publisher: sample_publisher.o | ||
$(CC) $(CFLAGS) -o sample_publisher sample_publisher.o | ||
all: $(BINARIES) | ||
|
||
sample_publisher.o: sample_publisher.cpp | ||
$(CC) $(CFLAGS) -c sample_publisher.cpp | ||
clean: | ||
rm $(BINARIES) |
Binary file not shown.
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
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
Binary file not shown.
Oops, something went wrong.