Merge pull request #10 from ecks/master

-lX11 needs to be at the end when linking
This commit is contained in:
Kristian Setälä 2018-01-18 16:59:24 +02:00 committed by GitHub
commit 45b752b130
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ $(objects): %.o: %.cpp $(headers)
$(CXX) $(CXXFLAGS) -Wall -c -o $@ $< $(CXX) $(CXXFLAGS) -Wall -c -o $@ $<
$(program): $(objects) $(program): $(objects)
$(CXX) $(CXXFLAGS) -lX11 $(LDFLAGS) -o $@ $^ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $^ -lX11
clean: clean:
rm -f $(program) $(objects) rm -f $(program) $(objects)