libtrycatch  Check-in [34a019c3c5]

Overview
Comment:Properly declare dependencies in the Makefile
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | trunk
Files: files | file ages | folders
SHA3-256: 34a019c3c5e348c4a601229723512795e4621dae1242f09215a26868e9f308ca
User & Date: js on 2017-01-22 15:56:43
Other Links: manifest | tags
Context
2017-01-22
15:56
Properly declare dependencies in the Makefile Leaf check-in: 34a019c3c5 user: js tags: trunk
15:55
Demonstrate rethrow in the example check-in: 0a653c9820 user: js tags: trunk
Changes

Modified Makefile from [3d1998ff41] to [592dac6b06].

1
2
3
4
5
6
7
8
9
10
11
12
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 $@ $<
















>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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