2ffe977836
FossilOrigin-Name: 7bc838fbb628e77c59da85f238f6b2668a2d5caa82dcfcaeadc0442be9674f3f
18 lines
276 B
Makefile
18 lines
276 B
Makefile
CC ?= cc
|
|
CFLAGS = -g -ansi -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)
|