mastodont-c/Makefile
me@ow.nekobit.net 2ffe977836 Fix query string generator
FossilOrigin-Name: 7bc838fbb628e77c59da85f238f6b2668a2d5caa82dcfcaeadc0442be9674f3f
2022-02-15 15:39:34 +00:00

19 lines
276 B
Makefile

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