Skip to content

Commit

Permalink
added c++ tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ssmehta committed Jun 7, 2016
1 parent 01ad70c commit 55377cf
Show file tree
Hide file tree
Showing 4 changed files with 10,547 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ build
.Rproj.user

cpp/splash
cpp/splash_test
*.gch
14 changes: 9 additions & 5 deletions cpp/Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
CC = g++
RM = rm -f
CPPFLAGS = -Wall -O2
LDFLAGS =
LDLIBS = -lcrypto -lssl
CPPFLAGS = -Wall -O2 $(EXTRA_CPPFLAGS)
LDFLAGS = $(EXTRA_LDFLAGS)
LDLIBS = -lssl -lcrypto

TARGET = splash

all: $(TARGET)

$(TARGET): src/$(TARGET).cpp
$(CC) $(CXXFLAGS) $(LDFLAGS) -o $(TARGET) src/*.cpp $(LDLIBS)
$(CC) $(CPPFLAGS) $(LDFLAGS) -o $(TARGET) src/*.cpp $(LDLIBS)

clean:
$(RM) $(TARGET)
$(RM) $(TARGET) $(TARGET)_test tests/*.gch

test:
$(CC) $(CPPFLAGS) $(LDFLAGS) -o $(TARGET) -I src -o $(TARGET)_test src/$(TARGET).cpp tests/test_$(TARGET).cpp $(LDLIBS) && \
./$(TARGET)_test
Loading

0 comments on commit 55377cf

Please sign in to comment.