f3ee4033e2
Still need to format the results into a response though FossilOrigin-Name: ffd7736842ce412201895c3f0abe670242b880542df3c65386d739d088635adf
18 lines
273 B
Makefile
18 lines
273 B
Makefile
CC ?= cc
|
|
CFLAGS = -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)
|