Initial import
This commit is contained in:
commit
3be483a237
5 changed files with 210 additions and 0 deletions
13
Makefile
Normal file
13
Makefile
Normal file
|
@ -0,0 +1,13 @@
|
|||
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 $@ $<
|
Loading…
Add table
Add a link
Reference in a new issue