Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. include $(MENUETDEV)/osrules.mak
  2. ifdef ON_MINGW
  3. THIS_SRCS = new.cpp delete.cpp net\ip_addr.cpp net\udp_socket.cpp
  4. else
  5. THIS_SRCS = new.cpp delete.cpp net/ip_addr.cpp net/udp_socket.cpp
  6. endif
  7.  
  8. include $(MENUET_LIBC_TOPDIR)/Make.rules
  9.  
  10. mk_lib: gen_tmp all
  11.         make -f Makefile-link OUTFILE="libcpp.a"
  12. ifdef ON_MINGW
  13.         copy libcpp.a $(MENUETDEV)\lib
  14.         del libcpp.a
  15. else
  16.         mv -f libcpp.a $(MENUETDEV)/lib
  17. endif
  18.  
  19. dll: _gen_tmp all
  20.         make -f Makefile-link-dll OUTFILE="cpp-glue.so"
  21. ifdef ON_MINGW
  22.         copy cpp-glue.so $(MENUETDEV)\lib
  23.         del cpp-glue.so
  24. else
  25.         mv cpp-glue.so $(MENUETDEV)/lib
  26. endif
  27.  
  28. _gen_tmp:
  29.         @$(D_ECHO) > ../tmp_make
  30.  
  31. gen_tmp:
  32. ifdef ON_MINGW
  33.         @echo foo = bar> ..\tmp_make
  34.         @..\m_echo ..\tmp_make B_MENUET_LIBC_OBJS =
  35. else
  36.         @echo "foo = bar" > ../tmp_make
  37.         @../m_echo ../tmp_make B_MENUET_LIBC_OBJS =
  38. endif
  39.