mastodont-c/Makefile
me@ow.nekobit.net 40da84d46d get_account_statuses params
FossilOrigin-Name: 70b9cd55ab7402d0cddb79e2b8078f5b434cf21805940df58f75010820413ede
2022-04-27 19:16:15 +00:00

18 lines
372 B
Makefile

CC ?= cc
CFLAGS = -g -ansi -Wall -Werror=implicit-function-declaration -Wno-unused-variable -I ./include/ `pkg-config --cflags libcjson`
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)