55 lines
2.2 KiB
Makefile
55 lines
2.2 KiB
Makefile
# _,.---._ .-._ .--.-. ,--.--------.
|
|
# _,..---._ ,-.' , - `. /==/ \ .-._/==/ //==/, - , -\
|
|
# /==/, - \ /==/_, , - \|==|, \/ /, |==\ -\\==\.-. - ,-./
|
|
# |==| _ _\==| .=. |==|- \| | \==\- \`--`\==\- \
|
|
# |==| .=. |==|_ : ;=: - |==| , | -| `--`-' \==\_ \
|
|
# |==|,| | -|==| , '=' |==| - _ | |==|- |
|
|
# |==| '=' /\==\ - ,_ /|==| /\ , | |==|, |
|
|
# |==|-, _`/ '.='. - .' /==/, | |- | /==/ -/
|
|
# `-.`.____.' `--`--'' `--`./ `--` `--`--`
|
|
# _ __ ,---. .-._ .=-.-. _,.----.
|
|
# .-`.' ,`..--.' \ /==/ \ .-._ /==/_ /.' .' - \
|
|
# /==/, - \==\-/\ \ |==|, \/ /, /==|, |/==/ , ,-'
|
|
# |==| _ .=. /==/-|_\ | |==|- \| ||==| ||==|- | .
|
|
# |==| , '=',\==\, - \ |==| , | -||==|- ||==|_ `-' \
|
|
# |==|- '..'/==/ - ,| |==| - _ ||==| ,||==| _ , |
|
|
# |==|, | /==/- /\ - \|==| /\ , ||==|- |\==\. /
|
|
# /==/ - | \==\ _.\=\.-'/==/, | |- |/==/. / `-.`.___.-'
|
|
# `--`---' `--` `--`./ `--``--`-`
|
|
#
|
|
# @(#)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.
|
|
#
|
|
|
|
include ../config.mk
|
|
|
|
CFLAGS += -I../include
|
|
CFLAGS += -I../../libepoch/include
|
|
LDLIBS += ../libsemver.a
|
|
LIBS += ../../libepoch/libepoch.a
|
|
LDLIBS += $(LIBS)
|
|
|
|
tests += u128_from_version
|
|
tests += compare
|
|
|
|
total != echo $(tests) | wc -w | awk '{ print $$1 }'
|
|
|
|
.PHONY: test
|
|
test: $(tests) runner output
|
|
./runner $(tests)
|
|
|
|
output:
|
|
@ [-d $@ ] 2>/dev/null || install -d $@
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -rf $(tests) output/*
|