# _,.---._ .-._ .--.-. ,--.--------. # _,..---._ ,-.' , - `. /==/ \ .-._/==/ //==/, - , -\ # /==/, - \ /==/_, , - \|==|, \/ /, |==\ -\\==\.-. - ,-./ # |==| _ _\==| .=. |==|- \| | \==\- \`--`\==\- \ # |==| .=. |==|_ : ;=: - |==| , | -| `--`-' \==\_ \ # |==|,| | -|==| , '=' |==| - _ | |==|- | # |==| '=' /\==\ - ,_ /|==| /\ , | |==|, | # |==|-, _`/ '.='. - .' /==/, | |- | /==/ -/ # `-.`.____.' `--`--'' `--`./ `--` `--`--` # _ __ ,---. .-._ .=-.-. _,.----. # .-`.' ,`..--.' \ /==/ \ .-._ /==/_ /.' .' - \ # /==/, - \==\-/\ \ |==|, \/ /, /==|, |/==/ , ,-' # |==| _ .=. /==/-|_\ | |==|- \| ||==| ||==|- | . # |==| , '=',\==\, - \ |==| , | -||==|- ||==|_ `-' \ # |==|- '..'/==/ - ,| |==| - _ ||==| ,||==| _ , | # |==|, | /==/- /\ - \|==| /\ , ||==|- |\==\. / # /==/ - | \==\ _.\=\.-'/==/, | |- |/==/. / `-.`.___.-' # `--`---' `--` `--`./ `--``--`-` # # @(#)Copyright (c) 2023, Nathan D. Fisher. # # This is free software. It comes with NO WARRANTY. # Permission to use, modify and distribute this source code # is granted subject to the following conditions. # 1/ that the above copyright notice and this notice # are preserved in all copies and that due credit be given # to the author. # 2/ that any changes to this code are clearly commented # as such so that the author does not get blamed for bugs # other than his own. # .SUFFIXES: .SUFFIXES: .o .c CFLAGS += -Wall CFLAGS += -Werror CFLAGS += -Iinclude hdrs += include/gemtext-parser.h srcs += gemtext-parser.c objs = $(srcs:.c=.o) libname = libgemtext-parser staticlib = $(libname).a all: static static: $(staticlib) $(staticlib): $(objs) $(AR) rcs $@ $? clean: rm -rf $(objs) $(staticlib) .PHONY: all clean