makefile 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #
  2. # The goal is to keep as much per-system stuff autodetected in plan9.h
  3. # as possible. Still, sometimes you can't help it. Look for your system.
  4. #
  5. # SGI
  6. #
  7. # To correctly handle 64-bit files and offsets, add -64 to CFLAGS and LDFLAGS
  8. # On Irix 5.X, add -DIRIX5X to hack around their own #include problems (see plan9.h).
  9. #
  10. # SunOS
  11. #
  12. # SunOS 5.5.1 does not provide inttypes.h; add -lsunos to CFLAGS and
  13. # change CC and LD to gcc. Add -lsocket, -lnsl to LDTAIL.
  14. # If you need <inttypes.h> copy sun-inttypes.h to inttypes.h.
  15. #
  16. #CC=cc
  17. CFLAGS=-g -I.
  18. LD=cc
  19. LDFLAGS=
  20. LDTAIL=
  21. OFILES=\
  22. authnone.o\
  23. authrhosts.o\
  24. authp9any.o\
  25. convD2M.o\
  26. convM2D.o\
  27. convM2S.o\
  28. convS2M.o\
  29. des.o\
  30. dirmodeconv.o\
  31. doprint.o\
  32. fcallconv.o\
  33. oldfcall.o\
  34. print.o\
  35. random.o\
  36. readn.o\
  37. remotehost.o\
  38. rune.o\
  39. safecpy.o\
  40. strecpy.o\
  41. tokenize.o\
  42. u9fs.o\
  43. utfrune.o
  44. HFILES=\
  45. fcall.h\
  46. plan9.h
  47. u9fs: $(OFILES)
  48. $(LD) $(LDFLAGS) -o u9fs $(OFILES) $(LDTAIL)
  49. %.o: %.c $(HFILES)
  50. $(CC) $(CFLAGS) -c $*.c
  51. clean:
  52. rm -f *.o u9fs
  53. install: u9fs
  54. cp u9fs ../../bin
  55. .PHONY: clean install