Tiffy is a static website generator that uses Lizard markup files to create a website.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
416 B

# By James Henderson, 2020
CC := gcc
CFLAGS := -std=c99 -Os
LFLAGS := -s -Os
BUILDDIR := build
SRCS := $(notdir $(shell find -name '*.c'))
OBJS := $(patsubst %.cpp, $(BUILDDIR)/%.o, $(SRCS))
tiffy: builddir $(OBJS) $(SRCS)
$(CC) $(LFLAGS) $(OBJS) -o $(BUILDDIR)/tiffy
$(OBJDIR)/%.o: %.cpp
$(CC) $(CFLAGS) $^ -o $@
.PHONY: builddir
@mkdir -p $(BUILDDIR)
.PHONY: clean
@rm -rf build/