ADT
        arm-eh
        ast-experimental
        enum
        forall-pointer-decay
        jacob/cs343-translation
        jenkins-sandbox
        new-ast
        new-ast-unique-expr
        pthread-emulation
        qualifiedEnum
      
      
        
          | 
            Last change
 on this file since f93f35a was             3e06da2, checked in by Thierry Delisle <tdelisle@…>, 7 years ago           | 
        
        
          | 
             
Apparent fix for debug resolution problem with exceptions 
 
           | 
        
        
          
            
              - 
Property                 mode
 set to                 
100644
               
             
           | 
        
        
          | 
            File size:
            504 bytes
           | 
        
      
      
| Line |   | 
|---|
| 1 | CFLAGS = -fexceptions -Wall -Werror -g
 | 
|---|
| 2 | CC = gcc
 | 
|---|
| 3 | 
 | 
|---|
| 4 | all: except-pic except-pdc
 | 
|---|
| 5 | 
 | 
|---|
| 6 | clean:
 | 
|---|
| 7 |         rm -fv except-pic except-pdc *.o *.so
 | 
|---|
| 8 | 
 | 
|---|
| 9 | pic.s: test.c Makefile
 | 
|---|
| 10 |         $(CC) $(CFLAGS) -fPIC -S -o $@ $<
 | 
|---|
| 11 | 
 | 
|---|
| 12 | pdc.s: test.c Makefile
 | 
|---|
| 13 |         $(CC) $(CFLAGS) -S -o $@ $<
 | 
|---|
| 14 | 
 | 
|---|
| 15 | except-pdc: test-main.c exception.c
 | 
|---|
| 16 |         $(CC) $(CFLAGS) -o $@ $^
 | 
|---|
| 17 | 
 | 
|---|
| 18 | exception.s: exception.c
 | 
|---|
| 19 |         $(CC) $(CFLAGS) -S -o $@ -fPIC $^
 | 
|---|
| 20 | 
 | 
|---|
| 21 | libexcept.so: exception.c
 | 
|---|
| 22 |         $(CC) $(CFLAGS) -shared -o $@ -fPIC $^
 | 
|---|
| 23 | 
 | 
|---|
| 24 | except-pic: test-main.c libexcept.so
 | 
|---|
| 25 |         $(CC) $(CFLAGS) -o $@ $< -L. -lexcept
 | 
|---|
| 26 | 
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.