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:
9
Makefile
9
Makefile
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user