Respect LDFLAGS and link LIBS after object files.
This commit is contained in:
parent
4779481f30
commit
4d747db620
2
makefile
2
makefile
|
@ -31,7 +31,7 @@ all: $(ALL)
|
||||||
|
|
||||||
# linking the program.
|
# linking the program.
|
||||||
$(PROG): $(OBJS)
|
$(PROG): $(OBJS)
|
||||||
$(CXX) $(LIBS) $(OBJS) -o $(PROG)
|
$(CXX) $(LDFLAGS) $(OBJS) -o $(PROG) $(LIBS)
|
||||||
|
|
||||||
# cleaning everything that can be automatically recreated with "make".
|
# cleaning everything that can be automatically recreated with "make".
|
||||||
clean:
|
clean:
|
||||||
|
|
Loading…
Reference in New Issue