You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. # Based on Makefile.SH
  2. CC?= cc
  3. bin = /usr/local/bin
  4. lib =
  5. mansrc = /usr/man/man1
  6. manext = 1
  7. CFLAGS = -O
  8. LDFLAGS =
  9. libs = -lm -lcrypt
  10. public = perl perldb
  11. private =
  12. manpages = perl.man perldb.man
  13. util =
  14. h1 = EXTERN.h INTERN.h arg.h array.h cmd.h config.h form.h handy.h
  15. h2 = hash.h perl.h search.h spat.h stab.h str.h util.h
  16. h = $(h1) $(h2)
  17. c1 = arg.c array.c cmd.c dump.c form.c hash.c
  18. c2 = search.c stab.c str.c util.c version.c
  19. c = $(c1) $(c2)
  20. obj1 = arg.o array.o cmd.o dump.o form.o hash.o
  21. obj2 = search.o stab.o str.o util.o version.o
  22. obj = $(obj1) $(obj2)
  23. lintflags = -phbvxac
  24. addedbyconf = Makefile.old bsd eunice filexp loc pdp11 usg v7
  25. .c.o:
  26. $(CC) -c $(CFLAGS) $(LARGE) $*.c
  27. all: $(public) $(private) $(util)
  28. echo "done"
  29. perl: $(obj) perl.o
  30. $(CC) $(LDFLAGS) $(obj) perl.o $(libs) -o perl
  31. perl.c: perl.y
  32. @ echo Expect 2 shift/reduce errors...
  33. yacc perl.y
  34. mv y.tab.c perl.c
  35. perl.o: perl.c perly.c perl.h EXTERN.h search.h util.h INTERN.h handy.h
  36. $(CC) -c $(CFLAGS) perl.c
  37. perl.man: perl.man.1 perl.man.2
  38. cat perl.man.1 perl.man.2 >perl.man
  39. install: perl perl.man
  40. echo "need to be written"
  41. exit
  42. clean:
  43. rm -f *.o
  44. realclean:
  45. rm -f perl *.orig */*.orig *.o core $(addedbyconf)
  46. # The following lint has practically everything turned on. Unfortunately,
  47. # you have to wade through a lot of mumbo jumbo that can't be suppressed.
  48. # If the source file has a /*NOSTRICT*/ somewhere, ignore the lint message
  49. # for that spot.
  50. lint:
  51. lint $(lintflags) $(defs) $(c) > perl.fuzz
  52. test: perl
  53. chmod 755 t/TEST t/base.* t/comp.* t/cmd.* t/io.* t/op.*
  54. cd t && (rm -f perl; ln -s ../perl . || ln ../perl .) && ./TEST