# Makefile

UNAME = $(shell uname)
CC = gcc

PROG = libsweet.so

OBJS = sweet_math.o sweet_matrix.o sweet_matrix_stack.o

CFLAGS = -pedantic -static -fPIC
LD = -shared 

all: $(PROG)
$(PROG): $(OBJS)
	$(CC) $(LD) $(OBJS) -o $(PROG)

.c.o:
	$(CC) $(CFLAGS) -c $*.c

clean:
	rm -rf $(OBJS)
	
mrproper:
	rm -rf $(OBJS) $(PROG)

