source: doc/working/exception/impl/Makefile @ 1d9dc9c

Last change on this file since 1d9dc9c 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
RevLine 
[3e06da2]1CFLAGS = -fexceptions -Wall -Werror -g
[fd73248]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
[3e06da2]18exception.s: exception.c
19        $(CC) $(CFLAGS) -S -o $@ -fPIC $^
20
[fd73248]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.