# Makefile for building bc library
# bc is available at https://www.gnu.org/software/bc/
# The code here is from https://ftp.gnu.org/gnu/bc/bc-1.08.2.tar.gz

CC= gcc
CFLAGS= -pedantic -Wall -Wextra -O2 $(PIC)
MYCFLAGS= $(CFLAGS) -I.
L= number.o

all:	$L

number.o: number.c number.h config.h
	$(CC) $(MYCFLAGS) -c number.c

clean:
	-rm -f *.o *.a $T
