comparison q/makefile @ 14:388074ff9474

Add fixed point code
author Daniel O'Connor <darius@dons.net.au>
date Tue, 25 Feb 2025 13:28:29 +1030
parents
children
comparison
equal deleted inserted replaced
13:032acb7fbc04 14:388074ff9474
1 QVERSION=0x000902
2 CFLAGS=-std=c99 -Wall -Wextra -O2 -pedantic -fwrapv -DQVERSION=${QVERSION} -Wmissing-prototypes
3 CC=cc
4 TARGET=q
5 RM=rm -fv
6 AR=ar
7 RANLIB=ranlib
8
9 .PHONY: all run clean
10
11 all: ${TARGET} expr
12
13 run: test ${TARGET} t.q
14 ./${TARGET} t.q
15
16 test: ${TARGET}
17 ./${TARGET} -t
18
19
20 q.o: q.c q.h
21
22 lib${TARGET}.a: q.o
23 ${AR} rcs $@ $<
24 ${RANLIB} $@
25
26 check: *.c *.h
27 cppcheck --enable=all *.c *.h
28
29 ${TARGET}: lib${TARGET}.a t.o
30
31 expr: lib${TARGET}.a expr.o
32
33 clean:
34 git clean -dffx