include ../../Config.mk

PROG = ../../bin/shunt

LOCAL_OBJS =

# Conditionally build the code that makes use of libcalc depending on
# the BUILD_SHUNT_USING_LIBCALC macro (set in Config.mk).  Also, set
# the compiler flags to use based on LIBCALC_DIR (also set in Config.mk).
ifeq ($(BUILD_SHUNT_USING_LIBCALC),yes)
    LOCAL_OBJS += znum_calc.o
    ifdef LIBCALC_DIR
        INCL += -I$(LIBCALC_DIR)/include
        LDFLAGS += -L$(LIBCALC_DIR)/lib -L$(LIBCALC_DIR)/share/calc/custom
    endif
    LDLIBS += -lcalc -lcustcalc
else
LOCAL_OBJS += znum_basic.o
endif

include ../Macros.mk
