home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume5 / malloc.uport / Makefile < prev    next >
Encoding:
Makefile  |  1989-02-03  |  1.4 KB  |  50 lines

  1. # Simple Makefile for fast malloc library
  2. #
  3. # For Microport do:
  4. #       make lib
  5. #      su root
  6. #    make install
  7. #
  8. # To try out the test programs do :
  9. #
  10. #    make tests
  11. #
  12. # Tests results are placed in the file 't-results'
  13. #
  14. CFLAGS= -Ml -O
  15. CC=cc
  16. LIBDIR=/usr/lib/large
  17. lib : malloc.o
  18.     ar rv libm286.a malloc.o
  19. install : libm286.a
  20.     mv libm286.a $(LIBDIR)
  21.     chmod 644 $(LIBDIR)/libm286.a
  22.     chgrp bin $(LIBDIR)/libm286.a
  23.     chown bin $(LIBDIR)/libm286.a
  24. malloc.o : /usr/include/malloc.h
  25.     $(CC) $(CFLAGS) -c malloc.c
  26.  
  27. tests : t-m286 tc-m286 $(LIBDIR)/libm286.a
  28.     @echo 'Beginning tests .... This will take awhile'
  29.     @echo 'Beginning test of standard malloc(3C) for allocating 400K bytes'
  30.     @echo 'Beginning test of standard malloc(3C) for allocating 400K bytes' >t-results
  31.     time t-malloc 400 2>>t-results
  32.     @echo 'Beginning test of standard malloc(3X) for allocating 400K bytes' >>t-results
  33.     @echo 'Beginning test of standard malloc(3X) for allocating 400K bytes'
  34.     -time t-malloc3x 400 2>>t-results
  35.     @echo 'Beginning test of standard m286(3X) for allocating 400K bytes' >>t-results
  36.     @echo 'Beginning test of standard m286(3X) for allocating 400K bytes' 
  37.     time t-m286 400 2>>t-results
  38.     
  39. t-m286 : t.o
  40.     $(CC) $(CFLAGS) -o t-m286 t.o -lm286
  41.     $(CC) $(CFLAGS) -o t-malloc t.o
  42.     $(CC) $(CFLAGS) -o t-malloc3x t.o -lmalloc
  43.  
  44. tc-m286 : tcheck.o
  45.     $(CC) $(CFLAGS) -o tc-m286 tcheck.o -lm286
  46.     $(CC) $(CFLAGS) -o tc-malloc tcheck.o
  47.     $(CC) $(CFLAGS) -o tc-malloc3x tcheck.o -lmalloc
  48.  
  49.  
  50.