2013-12-19 14:29:20 +01:00
|
|
|
|
2014-04-04 23:41:12 +02:00
|
|
|
LIBRARY= libgcc_eh
|
2013-12-19 14:29:20 +01:00
|
|
|
|
2014-04-21 19:06:44 +02:00
|
|
|
CC = kos32-gcc
|
|
|
|
AR = kos32-ar
|
|
|
|
LD = kos32-ld
|
|
|
|
CPP= kos32-g++
|
|
|
|
STRIP = kos32-strip
|
2013-12-19 14:29:20 +01:00
|
|
|
|
2014-04-21 19:06:44 +02:00
|
|
|
CFLAGS = -U_Win32 -U_WIN32 -U__MINGW32__ -c -O2 -fomit-frame-pointer
|
2013-12-19 14:29:20 +01:00
|
|
|
|
2014-04-21 19:06:44 +02:00
|
|
|
ARFLAG = crs
|
2013-12-19 14:29:20 +01:00
|
|
|
|
2014-05-21 22:47:51 +02:00
|
|
|
INCLUDES= -I. -I../newlib/libc/include
|
2013-12-19 14:29:20 +01:00
|
|
|
|
|
|
|
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
|
2014-04-21 19:06:44 +02:00
|
|
|
$(AR) cvrs $(LIBRARY).a $(OBJECTS)
|
2013-12-19 14:29:20 +01:00
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|