Subversion Repositories Kolibri OS

Rev

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