Skip to content

Commit

Permalink
Merge pull request #6 from tsulaiav/master-ubuntuCompFix
Browse files Browse the repository at this point in the history
Fixed compilation problems on Ubuntu
  • Loading branch information
tsulaiav authored Apr 24, 2018
2 parents 458aa91 + 06cec89 commit 46f7a48
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion examples/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CXX = g++
CXXFLAGS = -O2 -g -Wall -I../include -DNDEBUG -Wall
LDFLAGS = -L../ -lyampl -lpthread -Wl,-rpath,'$$ORIGIN'/../../
LDFLAGS = -L../ -lyampl -lpthread -luuid -lrt -Wl,-rpath,'$$ORIGIN'/../../

EXE = producer_consumer/producer producer_consumer/consumer \
client_server/client client_server/server \
Expand All @@ -9,6 +9,9 @@ EXE = producer_consumer/producer producer_consumer/consumer \

all: $(EXE)

$(EXE): %: %.cpp
$(CXX) $(CXXFLAGS) $< -o $@ $(LDFLAGS)

.PHONY: clean
clean:
rm -rf $(EXE)
5 changes: 4 additions & 1 deletion tests/Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
CXX = g++
CXXFLAGS = -O2 -g -Wall -I../include -Wall
LDFLAGS = -L../ -lyampl -Wl,-rpath,'$$ORIGIN'/../
LDFLAGS = -L../ -lyampl -lpthread -lrt -luuid -Wl,-rpath,'$$ORIGIN'/../

EXE = size calls dest

all: $(EXE)

$(EXE): %: %.cpp
$(CXX) $(CXXFLAGS) $< -o $@ $(LDFLAGS)

.PHONY: clean
clean:
rm -rf $(EXE)

0 comments on commit 46f7a48

Please sign in to comment.