Merge pull request #10 from ecks/master
-lX11 needs to be at the end when linking
This commit is contained in:
commit
45b752b130
2
Makefile
2
Makefile
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue