Started adding backtrace functionality for Win32, but need to find a replacement for kill and sigsetjmp/siglongjmp since mingw doesn't support them ....

This commit is contained in:
2011-07-26 22:43:13 -04:00
parent 216750dcd0
commit 8a10c7a1fe
5 changed files with 307 additions and 7 deletions

View File

@@ -1,6 +1,11 @@
CC=gcc
LD=gcc
OBJECTS=exclib.o exception_test.o
EXECOBJ=
OBJECTS=exclib.o exception_test.o backtrace.o
LIBS=
ifeq "$(OS)" "win32"
LIBS=-lbfd -lintl -liberty -imagehlp
endif
all: exception_test
@@ -8,7 +13,7 @@ all: exception_test
$(CC) -c -o $@ $(CFLAGS) -rdynamic -ggdb -gstabs $<
exception_test: $(OBJECTS)
$(LD) -o exception_test $(OBJECTS)
$(LD) -o exception_test $(LIBS) $(OBJECTS)
.PHONY: clean
clean: