mastodont-c/Makefile
nekobit f8d05e048a Bundle cJSON by default
FossilOrigin-Name: 6683d12f8170ec47d885f65a56703962e7138d467f4223d3aa68e2b5997a21c8
2022-06-01 06:15:45 +00:00

23 lines
430 B
Makefile

CC ?= cc
CFLAGS = -g -std=c99 -Wall -Werror=implicit-function-declaration -Wno-unused-variable -I ./libs/ -I ./include/
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