mastodont-c/Makefile
me@ow.nekobit.net cf00b3c003 Doxygen setup
FossilOrigin-Name: d633b4312306277e88e39ae1797e9bb26d76f90ed757f6ca917401644f940445
2022-05-03 03:02:11 +00:00

23 lines
430 B
Makefile

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