sbs.mk 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
  2. # All rights reserved.
  3. # This component and the accompanying materials are made available
  4. # under the terms of the License "Eclipse Public License v1.0"
  5. # which accompanies this distribution, and is available
  6. # at the URL "http://www.eclipse.org/legal/epl-v10.html".
  7. #
  8. # Initial Contributors:
  9. # Nokia Corporation - initial contribution.
  10. #
  11. # Contributors:
  12. #
  13. # Description:
  14. # Utility makefile
  15. #
  16. #
  17. SHELL:=bash
  18. include $(SBS_HOME:\=/)/util/gccprogram.mk
  19. ifeq ($(filter win,$(HOSTPLATFORM)),win)
  20. PROCESS_C:=process_win.c
  21. CFLAGS:=-DHOST_WIN
  22. ifeq ($(SBS_MINGW),)
  23. LDFLAGS:=$(subst \,/,$(SBS_HOME:\=/)\win32\mingw\lib\libiberty.a)
  24. else
  25. LDFLAGS:=$(subst \,/,$(SBS_MINGW:\=/)\lib\libiberty.a)
  26. endif
  27. LDFLAGS:=$(LDFLAGS) -Wl,-lws2_32
  28. else
  29. PROCESS_C:=process.c
  30. CFLAGS:=-g
  31. linux_PTHREADLIBS:=-lpthread
  32. LDFLAGS:=$(linux_PTHREADLIBS) -lrt
  33. endif
  34. SOURCEDIR:=$(subst \,/,$(SBS_HOME))/util/talon
  35. # remember how to clean up:
  36. MANIFEST:=$(SOURCEDIR)/manifest
  37. ifeq ($(filter win,$(HOSTPLATFORM)),win)
  38. TARGET:=sbs
  39. SOURCES:=$(addprefix $(SOURCEDIR)/,sbs.c buffer.c sema.c log.c env.c file.c $(PROCESS_C))
  40. $(eval $(cprogram))
  41. endif