Subversion Repositories Kolibri OS

Rev

Rev 5134 | Rev 6302 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. LIBRARY= libsupc++
  2.  
  3. CC = kos32-gcc
  4. AR = kos32-ar
  5. LD = kos32-ld
  6. CPP= kos32-g++
  7. STRIP = kos32-strip
  8.  
  9. CFLAGS = -U_Win32 -U_WIN32 -U__MINGW32__ -c -O2 -fno-ident -fomit-frame-pointer
  10. CPPFLAGS = -fno-rtti
  11.  
  12. ARFLAGS= crs
  13.  
  14. INCLUDES= -I. -I../include/mingw32 -I../include -I../../newlib/libc/include -I/d/mingw/include
  15.  
  16. LIBS:=  -ldll -lc.dll
  17.  
  18. DEFINES= -DHAVE_CONFIG_H -DIN_GCC -DIN_GLIBCPP_V3 -DUSE_EMUTLS=1 -D_GLIBCXX_HAVE_TLS
  19.  
  20.  
  21. SOURCES =                                       \
  22.                 cp-demangle.c                   \
  23.                 gthr_mutex.c                    \
  24.                 array_type_info.cc              \
  25.                 atexit_thread.cc                \
  26.                 bad_alloc.cc                    \
  27.                 bad_cast.cc                     \
  28.                 bad_typeid.cc                   \
  29.                 class_type_info.cc              \
  30.                 del_op.cc                       \
  31.                 del_opnt.cc                     \
  32.                 del_opv.cc                      \
  33.                 del_opvnt.cc                    \
  34.                 dyncast.cc                      \
  35.                 eh_alloc.cc                     \
  36.                 eh_aux_runtime.cc               \
  37.                 eh_call.cc                      \
  38.                 eh_catch.cc                     \
  39.                 eh_exception.cc                 \
  40.                 eh_globals.cc                   \
  41.                 eh_personality.cc               \
  42.                 eh_ptr.cc                       \
  43.                 eh_term_handler.cc              \
  44.                 eh_terminate.cc                 \
  45.                 eh_throw.cc                     \
  46.                 eh_tm.cc                        \
  47.                 eh_type.c                       \
  48.                 eh_unex_handler.cc              \
  49.                 enum_type_info.cc               \
  50.                 function_type_info.cc           \
  51.                 fundamental_type_info.cc        \
  52.                 guard.cc                        \
  53.                 guard_error.cc                  \
  54.                 hash_bytes.cc                   \
  55.                 nested_exception.cc             \
  56.                 new_handler.cc                  \
  57.                 new_op.cc                       \
  58.                 new_opnt.cc                     \
  59.                 new_opv.cc                      \
  60.                 new_opvnt.cc                    \
  61.                 pbase_type_info.cc              \
  62.                 pmem_type_info.cc               \
  63.                 pointer_type_info.cc            \
  64.                 pure.cc                         \
  65.                 si_class_type_info.cc           \
  66.                 tinfo.cc                        \
  67.                 tinfo2.cc                       \
  68.                 vec.cc                          \
  69.                 vmi_class_type_info.cc          \
  70.                 vterminate.cc
  71.  
  72.  
  73. OBJECTS =  $(patsubst %.cc, %.o, $(patsubst %.c, %.o, $(SOURCES)))
  74.  
  75. # targets
  76.  
  77. all:$(LIBRARY).a
  78.  
  79. $(LIBRARY).a: $(OBJECTS) Makefile
  80.         $(AR) $(ARFLAGS) $(LIBRARY).a $(OBJECTS)               
  81.         mv -f $(LIBRARY).a ../../../lib
  82.  
  83. %.o : %.c Makefile
  84.         $(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $<
  85.  
  86. %.o : %.cc Makefile
  87.         $(CPP) $(CFLAGS) $(CPPFLAGS) $(DEFINES) $(INCLUDES) -o $@ $<
  88.  
  89. eh_ptr.o: eh_ptr.cc
  90.         $(CPP) $(CFLAGS) -std=gnu++0x $(CPPFLAGS) $(DEFINES) $(INCLUDES) -o $@ $<
  91.  
  92. eh_throw.o: eh_throw.cc
  93.         $(CPP) $(CFLAGS) -std=gnu++0x $(CPPFLAGS) $(DEFINES) $(INCLUDES) -o $@ $<
  94.  
  95. guard.o: guard.cc
  96.         $(CPP) $(CFLAGS) -std=gnu++0x $(CPPFLAGS) $(DEFINES) $(INCLUDES) -o $@ $<
  97.  
  98. atexit_thread.o: atexit_thread.cc
  99.         $(CPP) $(CFLAGS) -std=gnu++0x $(CPPFLAGS) $(DEFINES) $(INCLUDES) -o $@ $<
  100.  
  101. nested_exception.o: nested_exception.cc
  102.         $(CPP) $(CFLAGS) -std=gnu++0x $(CPPFLAGS) $(DEFINES) $(INCLUDES) -o $@ $<
  103.  
  104. clean:
  105.         -rm -f *.o
  106.  
  107.