-lX11 needs to be at the end when linking
This commit is contained in:
parent
d023bd7f58
commit
9703b88a1d
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