19 lines
332 B
Makefile
19 lines
332 B
Makefile
BUILD=debug
|
|
|
|
CFLAGS = -ggdb -I../fxplib/include -DPOINTPOS=16
|
|
LDFLAGS = -lm
|
|
|
|
FXPLIB_A = ../fxplib/lib/debug/libfxp_x86.a
|
|
|
|
default: ntc_calculation
|
|
|
|
export CFLAGS
|
|
export BUILD
|
|
export PREFIX
|
|
export POSTFIX = x86
|
|
$(FXPLIB_A):
|
|
cd ../fxplib && $(MAKE)
|
|
|
|
ntc_calculation: ntc_calculation.c $(FXPLIB_A)
|
|
gcc -o $@ $(CFLAGS) $(LDFLAGS) $^
|