Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
Gitignore MacOS trash and debug files
Browse files Browse the repository at this point in the history
  • Loading branch information
bitmaks committed Feb 20, 2022
1 parent 6d8fbc7 commit f925a3f
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,18 @@
/src/ti_comm/src/test/amp_serial_jetson_ECU_TEST
/src/ti_comm/src/test/amp_serial_jetson_SERIAL_TEST

# Debug files
/src/ti_comm/src/test/debug.txt
/src/ti_comm/src/test/debug_tx.txt
/src/ti_comm/src/test/debug_rx.txt

# MacOS
.DS_STORE
.DS_STORE?
.Spotlight-V100
.Trashes
*.dSYM
*.xml

# Intellij
*.iml
22 changes: 22 additions & 0 deletions src/ti_comm/src/test/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
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)

TESTFLAGS = -DDEBUG=1 -DDEBUG_TX=1 -DDEBUG_RX=1
SOURCES = $(wildcard *.cpp)

BINARIES = $(SOURCES:.cpp=)

%: %.cpp
$(GCC) $(CFLAGS) $< $(LIBS) -o $@

debug_%: %.cpp
$(GCC) $(CFLAGS) $(TESTFLAGS) $< $(LIBS) -o $@

all: $(BINARIES)

clean:
rm $(BINARIES)
Binary file not shown.

0 comments on commit f925a3f

Please sign in to comment.