2013-12-19 17:29:20 +04:00
|
|
|
|
2014-04-05 01:41:12 +04:00
|
|
|
LIBRARY= libgcc_eh
|
2013-12-19 17:29:20 +04:00
|
|
|
|
|
|
|
CC=gcc
|
|
|
|
CPP=g++
|
|
|
|
CFLAGS = -U_Win32 -U_WIN32 -U__MINGW32__ -c -O2 -fomit-frame-pointer
|
|
|
|
|
|
|
|
LD = ld
|
|
|
|
|
|
|
|
AR= ar
|
|
|
|
|
|
|
|
STRIP = $(PREFIX)strip
|
|
|
|
|
|
|
|
INCLUDES= -I. -I../newlib/include
|
|
|
|
|
|
|
|
|
|
|
|
LIBS:= -ldll -lc.dll
|
|
|
|
|
|
|
|
|
|
|
|
DEFINES= -DIN_GCC -DUSE_EMUTLS=1
|
|
|
|
|
|
|
|
|
|
|
|
SOURCES = unwind-c.c \
|
|
|
|
unwind-dw2.c \
|
|
|
|
unwind-dw2-fde.c
|
|
|
|
|
|
|
|
|
|
|
|
OBJECTS = $(patsubst %.cc, %.o, $(patsubst %.c, %.o, $(SOURCES)))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# targets
|
|
|
|
|
|
|
|
|
|
|
|
all:$(LIBRARY).a
|
|
|
|
|
|
|
|
|
|
|
|
$(LIBRARY).a: $(OBJECTS) Makefile
|
|
|
|
ar cvrs $(LIBRARY).a $(OBJECTS)
|
|
|
|
mv -f $(LIBRARY).a ../../lib
|
|
|
|
|
|
|
|
|
|
|
|
%.o : %.c Makefile
|
|
|
|
$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $<
|
|
|
|
|
|
|
|
%.o : %.cc Makefile
|
|
|
|
$(CPP) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $<
|
|
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-rm -f *.o
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|