# Makefile UNAME = $(shell uname) CC = gcc PROG = libsweet.so OBJS = sweet_math.o sweet_matrix.o sweet_matrix_stack.o sweet_geometry.o CFLAGS = -pedantic -fPIC -Wall 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)