libtrycatch  Makefile at [34a019c3c5]

File Makefile artifact 592dac6b06 part of check-in 34a019c3c5


CC ?= clang
CFLAGS ?= -Weverything -std=c11

## For C11
#CFLAGS += -DTRYCATCH_THREAD_LOCAL=_Thread_local
## For GCC / Clang
#CFLAGS += -DTRYCATCH_THREAD_LOCAL=__thread

libtrycatch.a: trycatch.o
	ar cr $@ $<

example: example.o libtrycatch.a
	${CC} -L. -ltrycatch -o $@ $<

trycatch.o: trycatch.c trycatch.h
example.o: example.c trycatch.h