mastodont-c/Makefile
me@ow.nekobit.net f3ee4033e2 Fetch timeline
Still need to format the results into a response though

FossilOrigin-Name: ffd7736842ce412201895c3f0abe670242b880542df3c65386d739d088635adf
2022-01-20 04:02:24 +00:00

19 lines
273 B
Makefile

CC ?= cc
CFLAGS = -ansi -I ./include/
SRC = $(wildcard src/*.c)
OBJ = $(patsubst %.c,%.o,$(SRC))
TARGET = libmastodont.a # shared
AR = ar
all: static
static: $(OBJ)
$(AR) rcs $(TARGET) $(OBJ)
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
clean:
rm -f $(TARGET)
rm -f $(OBJ)