2013-12-22 17:43:18 +01:00
|
|
|
LIBRARY= libsupc++
|
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
|
|
|
ARFLAGS= crs
|
2013-12-19 14:29:20 +01:00
|
|
|
|
|
|
|
INCLUDES= -I. -I../newlib/include
|
|
|
|
|
|
|
|
LIBS:= -ldll -lc.dll
|
|
|
|
|
2014-04-21 19:06:44 +02:00
|
|
|
DEFINES= -DIN_GCC -DUSE_EMUTLS=1 -D_GLIBCXX_HAVE_TLS
|
2013-12-19 14:29:20 +01:00
|
|
|
|
|
|
|
|
|
|
|
SOURCES = gthr_mutex.c \
|
|
|
|
bad_alloc.cc \
|
|
|
|
class_type_info.cc \
|
|
|
|
del_op.cc \
|
|
|
|
del_opv.cc \
|
|
|
|
eh_alloc.cc \
|
|
|
|
eh_aux_runtime.cc \
|
|
|
|
eh_call.cc \
|
|
|
|
eh_catch.cc \
|
|
|
|
eh_exception.cc \
|
|
|
|
eh_globals.cc \
|
|
|
|
eh_personality.cc \
|
|
|
|
eh_term_handler.cc \
|
|
|
|
eh_terminate.cc \
|
|
|
|
eh_throw.cc \
|
|
|
|
eh_type.c \
|
|
|
|
eh_unex_handler.cc \
|
|
|
|
guard.cc \
|
|
|
|
guard_error.cc \
|
|
|
|
new_handler.cc \
|
|
|
|
new_op.cc \
|
|
|
|
new_opnt.cc \
|
|
|
|
new_opv.cc \
|
|
|
|
pbase_type_info.cc \
|
|
|
|
pure.cc \
|
|
|
|
si_class_type_info.cc \
|
|
|
|
tinfo.cc \
|
|
|
|
vmi_class_type_info.cc \
|
|
|
|
vterminate.cc
|
|
|
|
|
|
|
|
|
|
|
|
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) $(ARFLAGS) $(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
|
|
|
|
|