home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 5 / Amiga Tools 5.iso / tools / developer-tools / aros / source / exec / semaphores / makefile < prev    next >
Encoding:
Makefile  |  1996-07-16  |  1.5 KB  |  70 lines

  1. # $Id: Makefile 1.2 1995/11/14 22:24:31 digulla Exp digulla $
  2. # $Log: Makefile $
  3. # Revision 1.2    1995/11/14  22:24:31  digulla
  4. # src/ replaced by $(SRCDIR)
  5. #
  6. # Revision 1.1    1995/11/05  22:41:12  digulla
  7. # Initial revision
  8. #
  9.  
  10. TOP_DIR     = prj:
  11. PART        = exec
  12. SUBPART     = semaphores
  13. CURRENT_DIR    = source/$(PART)/$(SUBPART)/
  14.  
  15. include $(TOP_DIR)MakeFlags
  16.  
  17. FUNCTIONS    =   addsemaphore attemptsemaphore attemptsemaphoreshared \
  18.             findsemaphore initsemaphore obtainsemaphore \
  19.             obtainsemaphorelist obtainsemaphoreshared procure \
  20.             releasesemaphore releasesemaphorelist remsemaphore vacate
  21.  
  22. SRCDIR        = src/
  23. SRCS        = $(foreach f,$(FUNCTIONS),$(SRCDIR)$f.c)
  24. OBJS        = $(foreach f,$(FUNCTIONS),$(OBJDIR)/$f.o)
  25. DEPS        = $(foreach f,$(FUNCTIONS),obj/$f.d)
  26. LIB        = $(LIB_PREFIX)$(PART)_$(SUBPART)$(OPT_SUFFIX)$(LIB_SUFFIX)
  27.  
  28. SUBDIRS     =
  29. USR_DIST_FILES    =
  30. DEV_DIST_FILES    = Makefile RCS_Link $(SRCS) $(SRCDIR)RCS_Link \
  31.         $(USR_DIST_FILES)
  32.  
  33. INCLUDES    =   $(INCLUDE_DIR) $(TOP_DIR)$(CURRENT_DIR)include \
  34.             $(INCLUDE_DIR) $(TOP_DIR)source/$(PART)/include \
  35.             $(INCLUDE_DIR) $(TOP_DIR)include
  36.  
  37. all :: $(LIB) all_subdirs
  38.     $(done-with-it)
  39.  
  40. all_subdirs :
  41.     @$(subst TARGET,all,$(SUBDIR_RULE))
  42.  
  43. $(LIB) : $(OBJDIR) $(OBJS)
  44.     $(AR) $(LIB) $(OBJS)
  45.  
  46. install ::
  47.     $(done-with-it)
  48.  
  49. clean ::
  50.     -$(RM) $(OBJS) $(LIB)
  51.  
  52. check ::
  53.     $(done-with-it)
  54.  
  55. dist ::
  56.     @$(subst TARGET,$@,$(SUBDIR_RULE))
  57.     @$(do-dist)
  58.  
  59. $(OBJDIR) :
  60.     -$(MKDIR) $(OBJDIR)
  61.  
  62. $(OBJDIR)/%.o : $(SRCDIR)%.c
  63.     $(run-cc)
  64.  
  65. obj/%.d : $(SRCDIR)%.c
  66.     $(make-depend)
  67.  
  68. -include $(DEPS)
  69.  
  70.