sweet/Makefile
2019-04-11 03:17:26 +02:00

26 lines
319 B
Makefile
Executable File

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