home *** CD-ROM | disk | FTP | other *** search
Makefile | 1989-09-11 | 1.1 KB | 55 lines |
- #
- # Makefile for the profiler
- #
- # (C) Copyright 1988, 1989 Diomidis D. Spinellis. All rights reserved.
- # See the file profprt.c for distribution details.
- #
- # You need a Uni*x compatible make program to use this makefile.
- # Microsoft make will probably not work.
-
- # Debugging flags
- #CFLAGS=-Od -W3 -qc -Zi -DDEBUG
- # Production flags
- CFLAGS=-Ox -W3
-
- CC=cl
- #CC=qcl
-
- all: lprof.obj mprof.obj cprof.obj sprof.obj profprt.exe
-
- test.exe: test.obj sprof.obj
- $(CC) -Fm $(CFLAGS) test.obj sprof.obj
-
- lprof.obj: prof.c
- $(CC) -AL $(CFLAGS) -c -Folprof.obj prof.c
-
- cprof.obj: prof.c
- $(CC) -AC $(CFLAGS) -c -Focprof.obj prof.c
-
- mprof.obj: prof.c
- $(CC) -AM $(CFLAGS) -c -Fomprof.obj prof.c
-
- sprof.obj: prof.c
- $(CC) -AS $(CFLAGS) -c -Fosprof.obj prof.c
-
- test.obj: test.c
- $(CC) -AS -c test.c
-
- profprt.exe: profprt.c
- $(CC) $(CFLAGS) profprt.c
-
- test: test.exe
- test
-
- install:
- copy lprof.obj $$LIB
- copy cprof.obj $$LIB
- copy mprof.obj $$LIB
- copy sprof.obj $$LIB
-
- clean:
- rm -f *.exe *.obj *.map prof.out
-
- shar:
- shar -pX -c README Makefile prof.c profprt.c test.c >prof.shar
-