add LIBS for linking -lm
This commit is contained in:
parent
1d36901fdd
commit
1872dac7f7
|
@ -33,7 +33,7 @@ default: $(FULLTARGET)
|
||||||
@echo "#### $< built ####"
|
@echo "#### $< built ####"
|
||||||
|
|
||||||
$(FULLTARGET): mkdir $(OBJECTS) Makefile
|
$(FULLTARGET): mkdir $(OBJECTS) Makefile
|
||||||
$(LINK.c) -o $@ $(OBJECTS)
|
$(LINK.c) -o $@ $(OBJECTS) $(LIBS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) $(TARGET) $(OBJECTS) $(DEPS) $(TSTTARGET) $(TSTOBJECTS) $(TSTDEPS) $(wildcard */*~ *~ tests/*.txt)
|
$(RM) $(TARGET) $(OBJECTS) $(DEPS) $(TSTTARGET) $(TSTOBJECTS) $(TSTDEPS) $(wildcard */*~ *~ tests/*.txt)
|
||||||
|
@ -49,7 +49,7 @@ test: $(TSTTARGET)
|
||||||
@echo "#### $< executed ####"
|
@echo "#### $< executed ####"
|
||||||
|
|
||||||
$(TSTTARGET): $(FULLTARGET) $(TSTOBJECTS)
|
$(TSTTARGET): $(FULLTARGET) $(TSTOBJECTS)
|
||||||
$(LINK.c) -o $(TSTTARGET) $(TSTOBJECTS) -lcunit -L$(TSTLIBDIR) -lsnptest
|
$(LINK.c) -o $(TSTTARGET) $(TSTOBJECTS) $(LIBS) -lcunit -L$(TSTLIBDIR) -lsnptest
|
||||||
@echo "#### $@ built ####"
|
@echo "#### $@ built ####"
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue