mirror of
https://github.com/cc65/cc65.git
synced 2025-01-02 09:34:22 +00:00
Most hosts require the math library to be linked explicitly.
This commit is contained in:
parent
18e00a1f9b
commit
780f38acd5
@ -20,6 +20,8 @@ CFLAGS += -MMD -MP -O -std=c89 -I common \
|
|||||||
-DCA65_INC=$(CA65_INC) -DCC65_INC=$(CC65_INC) \
|
-DCA65_INC=$(CA65_INC) -DCC65_INC=$(CC65_INC) \
|
||||||
-DLD65_LIB=$(LD65_LIB) -DLD65_OBJ=$(LD65_OBJ) -DLD65_CFG=$(LD65_CFG)
|
-DLD65_LIB=$(LD65_LIB) -DLD65_OBJ=$(LD65_OBJ) -DLD65_CFG=$(LD65_CFG)
|
||||||
|
|
||||||
|
LDLIBS += -lm
|
||||||
|
|
||||||
all: $(PROGS)
|
all: $(PROGS)
|
||||||
|
|
||||||
mostlyclean:
|
mostlyclean:
|
||||||
@ -74,7 +76,7 @@ define PROG_template
|
|||||||
$$(eval $$(call OBJS_template,$(1)))
|
$$(eval $$(call OBJS_template,$(1)))
|
||||||
|
|
||||||
../bin/$(1): $$($(1)_OBJS) ../wrk/common/common.a | ../bin
|
../bin/$(1): $$($(1)_OBJS) ../wrk/common/common.a | ../bin
|
||||||
$$(CC) $$(LDFLAGS) -o $$@ $$^
|
$$(CC) $$(LDFLAGS) $$(LDLIBS) -o $$@ $$^
|
||||||
|
|
||||||
$(1): ../bin/$(1)
|
$(1): ../bin/$(1)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user