Makefile 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. #
  2. # Copyright (C) 2008 by egnite GmbH
  3. # Copyright (C) 2001-2006 by egnite Software GmbH
  4. #
  5. # All rights reserved.
  6. #
  7. # Redistribution and use in source and binary forms, with or without
  8. # modification, are permitted provided that the following conditions
  9. # are met:
  10. #
  11. # 1. Redistributions of source code must retain the above copyright
  12. # notice, this list of conditions and the following disclaimer.
  13. # 2. Redistributions in binary form must reproduce the above copyright
  14. # notice, this list of conditions and the following disclaimer in the
  15. # documentation and/or other materials provided with the distribution.
  16. # 3. Neither the name of the copyright holders nor the names of
  17. # contributors may be used to endorse or promote products derived
  18. # from this software without specific prior written permission.
  19. #
  20. # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  21. # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  22. # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  23. # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  24. # COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  25. # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  26. # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
  27. # OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
  28. # AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  29. # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
  30. # THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  31. # SUCH DAMAGE.
  32. #
  33. # For additional information see http://www.ethernut.de/
  34. #
  35. PROJ = libnutfs
  36. top_srcdir = ..
  37. top_blddir = ..
  38. LIBDIR = $(top_blddir)/lib
  39. include $(top_srcdir)/NutConf.mk
  40. include $(top_srcdir)/Makedefs
  41. SRCS = pathops.c dirent.c fat.c uromfs.c pnutfs.c \
  42. phatfs.c phatvol.c phatdir.c phatio.c \
  43. phat12.c phat16.c phat32.c phatutil.c phatdbg.c \
  44. basename.c dirname.c
  45. OBJS = $(SRCS:.c=.o)
  46. TARG = $(PROJ).a
  47. all: $(TARG)
  48. include $(top_srcdir)/Makerules
  49. $(TARG): $(OBJS)
  50. $(AR) $(ARFLAGS) $(TARG) $(OBJS)
  51. install: $(TARG)
  52. $(CP) $(TARG) $(LIBDIR)/$(TARG)
  53. ifeq ($(ARCH), unix)
  54. $(RANLIB) $(LIBDIR)/$(TARG)
  55. endif
  56. clean:
  57. @echo " [CLEANING] $(TARG)..."
  58. @-rm -f $(OBJS)
  59. @-rm -f $(TARG)
  60. @-rm -f $(SRCS:.c=.lst)
  61. @-rm -f $(SRCS:.c=.lis)
  62. @-rm -f $(SRCS:.c=.s)
  63. @-rm -f $(SRCS:.c=.bak)
  64. @-rm -f $(SRCS:.c=.c~)
  65. @-rm -f $(SRCS:.c=.i)