OBJS = readconf.o do_op_set.o klist.o CFLAGS = -g -Wall -Wextra -Werror -Iinclude/ -fpic -c all: ../readconf.a %.o: %.c @$(CC) $*.c $(CFLAGS) @echo -e "CC\t\t\t$*.c" ../readconf.a: $(OBJS) @$(AR) -cr ../libreadconf.a $(OBJS) @echo -e "AR \t\t\tlibreadconf.a" readconf.so: $(OBJS) @$(LD) $(OBJS) -o readconf.so --shared .PHONY clean: rm $(OBJS) readconf.a -f