source: doc/working/exception/impl/Makefile @ 63db8fd7

ADTast-experimentalenumpthread-emulationqualifiedEnum
Last change on this file since 63db8fd7 was 3e06da2, checked in by Thierry Delisle <tdelisle@…>, 6 years ago

Apparent fix for debug resolution problem with exceptions

  • Property mode set to 100644
File size: 504 bytes
Line 
1CFLAGS = -fexceptions -Wall -Werror -g
2CC = gcc
3
4all: except-pic except-pdc
5
6clean:
7        rm -fv except-pic except-pdc *.o *.so
8
9pic.s: test.c Makefile
10        $(CC) $(CFLAGS) -fPIC -S -o $@ $<
11
12pdc.s: test.c Makefile
13        $(CC) $(CFLAGS) -S -o $@ $<
14
15except-pdc: test-main.c exception.c
16        $(CC) $(CFLAGS) -o $@ $^
17
18exception.s: exception.c
19        $(CC) $(CFLAGS) -S -o $@ -fPIC $^
20
21libexcept.so: exception.c
22        $(CC) $(CFLAGS) -shared -o $@ -fPIC $^
23
24except-pic: test-main.c libexcept.so
25        $(CC) $(CFLAGS) -o $@ $< -L. -lexcept
26
Note: See TracBrowser for help on using the repository browser.