Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework C++ makefiles #25

Merged
merged 3 commits into from
Nov 17, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
C++: Navio: update Makefile
Add multi-thread build in Makefile
When files update library will recompile
  • Loading branch information
Igor Anokhin committed Nov 17, 2017
commit 68215364d2520924a88686879beaa6adefe96aec
18 changes: 13 additions & 5 deletions C++/Navio/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
all:
g++ -std=c++11 -Wno-psabi -I . -c Common/*.cpp Navio2/*.cpp Navio+/*.cpp
ar rcs libnavio.a *.o
rm *.o
CXX = g++
CFLAGS = -std=c++11 -Wno-psabi -c -I .

SRC=$(wildcard */*.cpp)
OBJECTS = $(SRC:.cpp=.o)

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

all: $(OBJECTS)
ar rcs libnavio.a $(OBJECTS)

clean:
rm *.o
rm */*.o