mastodont-c/Makefile
me@ow.nekobit.net 9c758331bf Initial
FossilOrigin-Name: be71954e3fb364d819b61d45a31569346ce9dd47ac695f978c2c60b63134bd41
2022-01-18 23:43:18 +00:00

18 lines
267 B
Makefile

CC ?= cc
CFLAGS = -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)