1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
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