home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS 1992 June / SIMTEL_0692.cdr / msdos / c / ms_prof.arc / Makefile next >
Encoding:
Makefile  |  1989-09-11  |  1.1 KB  |  55 lines

  1. #
  2. # Makefile for the profiler
  3. #
  4. # (C) Copyright 1988, 1989 Diomidis D. Spinellis. All rights reserved.
  5. # See the file profprt.c for distribution details.
  6. #
  7. # You need a Uni*x compatible make program to use this makefile. 
  8. # Microsoft make will probably not work.
  9.  
  10. # Debugging flags
  11. #CFLAGS=-Od -W3 -qc -Zi -DDEBUG
  12. # Production flags
  13. CFLAGS=-Ox -W3
  14.  
  15. CC=cl
  16. #CC=qcl
  17.  
  18. all: lprof.obj mprof.obj cprof.obj sprof.obj profprt.exe
  19.  
  20. test.exe: test.obj sprof.obj
  21.     $(CC) -Fm $(CFLAGS) test.obj sprof.obj
  22.  
  23. lprof.obj: prof.c
  24.     $(CC) -AL $(CFLAGS) -c -Folprof.obj prof.c
  25.  
  26. cprof.obj: prof.c
  27.     $(CC) -AC $(CFLAGS) -c -Focprof.obj prof.c
  28.  
  29. mprof.obj: prof.c
  30.     $(CC) -AM $(CFLAGS) -c -Fomprof.obj prof.c
  31.  
  32. sprof.obj: prof.c
  33.     $(CC) -AS $(CFLAGS) -c -Fosprof.obj prof.c
  34.  
  35. test.obj: test.c
  36.     $(CC) -AS -c test.c
  37.  
  38. profprt.exe: profprt.c
  39.     $(CC) $(CFLAGS) profprt.c
  40.  
  41. test: test.exe
  42.     test
  43.  
  44. install:
  45.     copy lprof.obj $$LIB
  46.     copy cprof.obj $$LIB
  47.     copy mprof.obj $$LIB
  48.     copy sprof.obj $$LIB
  49.  
  50. clean:
  51.     rm -f *.exe *.obj *.map prof.out
  52.  
  53. shar:
  54.     shar -pX -c README Makefile prof.c profprt.c test.c >prof.shar
  55.