mastodont-c/Makefile
nekobit 8e708a1366 use local cJSON dep
FossilOrigin-Name: a2ec8515054a4e6abbdb811590b499c9b5948037f88a9858a8046418026db090
2022-06-05 19:23:52 +00:00

23 lines
466 B
Makefile

CC ?= cc
CFLAGS = -g -std=c99 -Wall -Werror=implicit-function-declaration -Wno-unused-variable -I ./libs/ -I ./include/ $(shell pkg-config --cflags libcurl)
SRC = $(wildcard src/*.c) libs/cjson/cJSON.c
OBJ = $(patsubst %.c,%.o,$(SRC))
TARGET = libmastodont.a # shared
AR = ar
all: static
docs:
doxygen Doxyfile
static: $(OBJ)
$(AR) rcs $(TARGET) $(OBJ)
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
clean:
rm -f $(TARGET)
rm -f $(OBJ)
.PHONY: clean docs all test