Makefile.in 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # Makefile for uClibc
  2. #
  3. # Copyright (C) 2000 by Lineo, inc.
  4. # Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
  5. #
  6. # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  7. #
  8. MSRC1:=sem.c
  9. MOBJ1:=semget.o semctl.o semop.o
  10. MSRC2:=shm.c
  11. MOBJ2:=shmat.o shmctl.o shmdt.o shmget.o
  12. MSRC3:=msgq.c
  13. MOBJ3:=msgctl.o msgget.o msgrcv.o msgsnd.o
  14. CSRC:=ftok.c
  15. MISC_SYSVIPC_DIR:=$(top_srcdir)libc/misc/sysvipc
  16. MISC_SYSVIPC_OUT:=$(top_builddir)libc/misc/sysvipc
  17. MISC_SYSVIPC_SRC:=$(patsubst %.c,$(MISC_SYSVIPC_DIR)/%.c,$(CSRC))
  18. MISC_SYSVIPC_OBJ:=$(patsubst %.c,$(MISC_SYSVIPC_OUT)/%.o,$(CSRC))
  19. MISC_SYSVIPC_NO_MULTI:=$(MOBJ1) $(MOBJ3)
  20. MISC_SYSVIPC_MSRC1:=$(patsubst %.c,$(MISC_SYSVIPC_DIR)/%.c,$(MSRC1))
  21. MISC_SYSVIPC_MSRC2:=$(patsubst %.c,$(MISC_SYSVIPC_DIR)/%.c,$(MSRC2))
  22. MISC_SYSVIPC_MSRC3:=$(patsubst %.c,$(MISC_SYSVIPC_DIR)/%.c,$(MSRC3))
  23. MISC_SYSVIPC_MOBJ1:=$(patsubst %.o,$(MISC_SYSVIPC_OUT)/%.o,$(MOBJ1))
  24. MISC_SYSVIPC_MOBJ2:=$(patsubst %.o,$(MISC_SYSVIPC_OUT)/%.o,$(MOBJ2))
  25. MISC_SYSVIPC_MOBJ3:=$(patsubst %.o,$(MISC_SYSVIPC_OUT)/%.o,$(MOBJ3))
  26. MISC_SYSVIPC_MSRC:=$(MISC_SYSVIPC_MSRC1) $(MISC_SYSVIPC_MSRC2) $(MISC_SYSVIPC_MSRC3)
  27. MISC_SYSVIPC_MOBJ:=$(MISC_SYSVIPC_MOBJ1) $(MISC_SYSVIPC_MOBJ2) $(MISC_SYSVIPC_MOBJ3)
  28. # only MSRC2
  29. MISC_SYSVIPC_DEF:=$(patsubst %,-DL_%,$(subst .o,,$(notdir $(MISC_SYSVIPC_MOBJ2))))
  30. MISC_SYSVIPC_OBJS:=$(MISC_SYSVIPC_OBJ) $(MISC_SYSVIPC_MOBJ)
  31. $(MISC_SYSVIPC_MOBJ1) $(MISC_SYSVIPC_MOBJ1:.o=.os): $(MISC_SYSVIPC_MSRC1)
  32. $(compile.m)
  33. $(MISC_SYSVIPC_MOBJ2) $(MISC_SYSVIPC_MOBJ2:.o=.os): $(MISC_SYSVIPC_MSRC2)
  34. $(compile.m)
  35. $(MISC_SYSVIPC_MOBJ3) $(MISC_SYSVIPC_MOBJ3:.o=.os): $(MISC_SYSVIPC_MSRC3)
  36. $(compile.m)
  37. libc-a-y+=$(MISC_SYSVIPC_OBJS)
  38. libc-a-pic-y+=$(MISC_SYSVIPC_OBJS:.o=.os)
  39. libc-so-y+=$(MISC_SYSVIPC_OBJS:.o=.os)
  40. CFLAGS-multi-y+=$(MISC_SYSVIPC_DEF)
  41. libc-multi-y+=$(MISC_SYSVIPC_SRC) $(MISC_SYSVIPC_MSRC2)
  42. libc-nomulti-y+=$(MISC_SYSVIPC_MOBJ1) $(MISC_SYSVIPC_MOBJ3)
  43. objclean-y+=misc_sysvipc_objclean
  44. misc_sysvipc_objclean:
  45. $(RM) $(MISC_SYSVIPC_OUT)/*.{o,os}