Subversion Repositories Kolibri OS

Rev

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/home/autobuild/tools/win32/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.                 array_type_info.cc              \
  24.                 atexit_thread.cc                \
  25.                 bad_alloc.cc                    \
  26.                 bad_cast.cc                     \
  27.                 bad_typeid.cc                   \
  28.                 class_type_info.cc              \
  29.                 del_op.cc                       \
  30.                 del_opnt.cc                     \
  31.                 del_opv.cc                      \
  32.                 del_opvnt.cc                    \
  33.                 dyncast.cc                      \
  34.                 eh_alloc.cc                     \
  35.                 eh_aux_runtime.cc               \
  36.                 eh_call.cc                      \
  37.                 eh_catch.cc                     \
  38.                 eh_exception.cc                 \
  39.                 eh_globals.cc                   \
  40.                 eh_personality.cc               \
  41.                 eh_ptr.cc                       \
  42.                 eh_term_handler.cc              \
  43.                 eh_terminate.cc                 \
  44.                 eh_throw.cc                     \
  45.                 eh_tm.cc                        \
  46.                 eh_type.c                       \
  47.                 eh_unex_handler.cc              \
  48.                 enum_type_info.cc               \
  49.                 function_type_info.cc           \
  50.                 fundamental_type_info.cc        \
  51.                 guard.cc                        \
  52.                 guard_error.cc                  \
  53.                 hash_bytes.cc                   \
  54.                 nested_exception.cc             \
  55.                 new_handler.cc                  \
  56.                 new_op.cc                       \
  57.                 new_opnt.cc                     \
  58.                 new_opv.cc                      \
  59.                 new_opvnt.cc                    \
  60.                 pbase_type_info.cc              \
  61.                 pmem_type_info.cc               \
  62.                 pointer_type_info.cc            \
  63.                 pure.cc                         \
  64.                 si_class_type_info.cc           \
  65.                 tinfo.cc                        \
  66.                 tinfo2.cc                       \
  67.                 vec.cc                          \
  68.                 vmi_class_type_info.cc          \
  69.                 vterminate.cc
  70.  
  71.  
  72. OBJECTS =  $(patsubst %.cc, %.o, $(patsubst %.c, %.o, $(SOURCES)))
  73.  
  74. # targets
  75.  
  76. all:$(LIBRARY).a
  77.  
  78. $(LIBRARY).a: $(OBJECTS) Makefile
  79.         $(AR) $(ARFLAGS) $(LIBRARY).a $(OBJECTS)               
  80.         mv -f $(LIBRARY).a ../../../lib
  81.  
  82. %.o : %.c Makefile
  83.         $(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $<
  84.  
  85. %.o : %.cc Makefile
  86.         $(CPP) $(CFLAGS) $(CPPFLAGS) $(DEFINES) $(INCLUDES) -o $@ $<
  87.  
  88. eh_ptr.o: eh_ptr.cc
  89.         $(CPP) $(CFLAGS) -std=gnu++0x $(CPPFLAGS) $(DEFINES) $(INCLUDES) -o $@ $<
  90.  
  91. eh_throw.o: eh_throw.cc
  92.         $(CPP) $(CFLAGS) -std=gnu++0x $(CPPFLAGS) $(DEFINES) $(INCLUDES) -o $@ $<
  93.  
  94. guard.o: guard.cc
  95.         $(CPP) $(CFLAGS) -std=gnu++0x $(CPPFLAGS) $(DEFINES) $(INCLUDES) -o $@ $<
  96.  
  97. atexit_thread.o: atexit_thread.cc
  98.         $(CPP) $(CFLAGS) -std=gnu++0x $(CPPFLAGS) $(DEFINES) $(INCLUDES) -o $@ $<
  99.  
  100. nested_exception.o: nested_exception.cc
  101.         $(CPP) $(CFLAGS) -std=gnu++0x $(CPPFLAGS) $(DEFINES) $(INCLUDES) -o $@ $<
  102.  
  103. clean:
  104.         -rm -f *.o
  105.  
  106.