home *** CD-ROM | disk | FTP | other *** search
Makefile | 1989-02-03 | 1.4 KB | 50 lines |
- # Simple Makefile for fast malloc library
- #
- # For Microport do:
- # make lib
- # su root
- # make install
- #
- # To try out the test programs do :
- #
- # make tests
- #
- # Tests results are placed in the file 't-results'
- #
- CFLAGS= -Ml -O
- CC=cc
- LIBDIR=/usr/lib/large
- lib : malloc.o
- ar rv libm286.a malloc.o
- install : libm286.a
- mv libm286.a $(LIBDIR)
- chmod 644 $(LIBDIR)/libm286.a
- chgrp bin $(LIBDIR)/libm286.a
- chown bin $(LIBDIR)/libm286.a
- malloc.o : /usr/include/malloc.h
- $(CC) $(CFLAGS) -c malloc.c
-
- tests : t-m286 tc-m286 $(LIBDIR)/libm286.a
- @echo 'Beginning tests .... This will take awhile'
- @echo 'Beginning test of standard malloc(3C) for allocating 400K bytes'
- @echo 'Beginning test of standard malloc(3C) for allocating 400K bytes' >t-results
- time t-malloc 400 2>>t-results
- @echo 'Beginning test of standard malloc(3X) for allocating 400K bytes' >>t-results
- @echo 'Beginning test of standard malloc(3X) for allocating 400K bytes'
- -time t-malloc3x 400 2>>t-results
- @echo 'Beginning test of standard m286(3X) for allocating 400K bytes' >>t-results
- @echo 'Beginning test of standard m286(3X) for allocating 400K bytes'
- time t-m286 400 2>>t-results
-
- t-m286 : t.o
- $(CC) $(CFLAGS) -o t-m286 t.o -lm286
- $(CC) $(CFLAGS) -o t-malloc t.o
- $(CC) $(CFLAGS) -o t-malloc3x t.o -lmalloc
-
- tc-m286 : tcheck.o
- $(CC) $(CFLAGS) -o tc-m286 tcheck.o -lm286
- $(CC) $(CFLAGS) -o tc-malloc tcheck.o
- $(CC) $(CFLAGS) -o tc-malloc3x tcheck.o -lmalloc
-
-
-