mastodont-c/Makefile
me@ow.nekobit.net e3763457e5 Fix compile bugs
FossilOrigin-Name: c4705b366ed1b7e821a2292d407c7a700515324583ba043552f1af4d9970c82a
2022-04-26 19:34:47 +00:00

18 lines
320 B
Makefile

CC ?= cc
CFLAGS = -g -ansi -Wall -Werror=implicit-function-declaration -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)