mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
28 lines
331 B
Makefile
28 lines
331 B
Makefile
|
STD=
|
||
|
WARN= -Wall
|
||
|
OPT= -Os
|
||
|
|
||
|
R_CFLAGS= $(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS)
|
||
|
R_LDFLAGS= $(LDFLAGS)
|
||
|
DEBUG= -g
|
||
|
|
||
|
R_CC=$(CC) $(R_CFLAGS)
|
||
|
R_LD=$(CC) $(R_LDFLAGS)
|
||
|
|
||
|
AR= ar
|
||
|
ARFLAGS= rcs
|
||
|
|
||
|
libfpconv.a: fpconv_dtoa.o
|
||
|
$(AR) $(ARFLAGS) $@ $+
|
||
|
|
||
|
fpconv_dtoa.o: fpconv_dtoa.h fpconv_dtoa.c
|
||
|
|
||
|
.c.o:
|
||
|
$(R_CC) -c $<
|
||
|
|
||
|
clean:
|
||
|
rm -f *.o
|
||
|
rm -f *.a
|
||
|
|
||
|
|