Skip to content

Commit

Permalink
Add SAI recorded log player (sonic-net#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
kcudnik authored and Shuotian Cheng committed Oct 12, 2016
1 parent 96be4a8 commit cc19600
Show file tree
Hide file tree
Showing 2 changed files with 1,238 additions and 0 deletions.
61 changes: 61 additions & 0 deletions player/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
warnings = \
-Wall \
-Wcast-align \
-Wcast-qual \
-Wconversion \
-Wdisabled-optimization \
-Werror \
-Wextra \
-Wextra \
-Wfloat-equal \
-Wformat=2 \
-Wformat-nonliteral \
-Wformat-security \
-Wformat-y2k \
-Wimport \
-Winit-self \
-Winline \
-Winvalid-pch \
-Wlong-long \
-Wmissing-field-initializers \
-Wmissing-format-attribute \
-Wmissing-include-dirs \
-Wno-aggregate-return \
-Wno-padded \
-Wno-switch-enum \
-Wno-unused-parameter \
-Wno-unused-variable \
-Wpacked \
-Wpointer-arith \
-Wredundant-decls \
-Wshadow \
-Wstack-protector \
-Wstrict-aliasing=2 \
-Wswitch \
-Wswitch-default \
-Wunreachable-code \
-Wunused \
-Wvariadic-macros \
-Wno-write-strings

OBJ = \
player.o

DEPS =

CFLAGS=-std=c++11 -I/usr/include/swss -I/usr/include/sai -I/usr/include -I.. $(warnings)
LDFLAGS=-lpthread -lsairedis -lswsscommon

all: player

%.o: %.cpp $(DEPS)
g++ -c -o $@ $< $(CFLAGS)

player: player.o $(OBJ)
g++ -o $@ $^ $(LDFLAGS)

.PHONY: clean

clean:
rm -f *~ .*~ player *.o *.lo

Loading

0 comments on commit cc19600

Please sign in to comment.