home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_300 / 329_01 / makefile < prev    next >
Makefile  |  1988-11-12  |  1KB  |  46 lines

  1. # Things you might want to put in ENV and LENV:
  2. # -Dvoid=int        compilers that don't do void
  3. # -DCHARBITS=0377    compilers that don't do unsigned char
  4. # -DSTATIC=extern    compilers that don't like "static foo();" as forward decl
  5. # -DSTRCSPN        library does not have strcspn()
  6. # -Dstrchr=index    library does not have strchr()
  7. # -DERRAVAIL        have utzoo-compatible error() function and friends
  8. ENV=-DSTATIC=extern
  9. LENV=-DLINTARGS
  10.  
  11. # Things you might want to put in TEST:
  12. # -DDEBUG        debugging hooks
  13. # -I.            regexp.h from current directory, not /usr/include
  14. TEST=
  15.  
  16. # Things you might want to put in PROF:
  17. # -Dstatic='/* */'    make everything global so profiler can see it.
  18. # -p            profiler
  19. PROF=
  20.  
  21. CFLAGS=-Ox $(ENV) $(TEST) $(PROF)
  22. LINTFLAGS=$(LENV) $(TEST) -ha
  23. LDFLAGS=/STACK:16384
  24.  
  25. OBJ=regexp.obj regsub.obj regerror.obj
  26. LSRC=regexp.c regsub.c regerror.c
  27. DTR=README dMakefile regexp.3 regexp.h regexp.c regsub.c regerror.c \
  28.     regmagic.h try.c timer.c tests
  29.  
  30. try.exe :    try.obj $(OBJ)
  31.     link $(LDFLAGS) try.obj $(OBJ),$@,;
  32.  
  33. egrep.exe : egrep.obj $(OBJ)
  34.     link $(LDFLAGS) $*.obj $(OBJ) $(SETARGV),$@,;
  35.  
  36. regexp.obj:    regexp.c regexp.h regmagic.h
  37. regsub.obj:    regsub.c regexp.h regmagic.h
  38.  
  39. .SUFFIXES : .doc .3
  40.  
  41. .3.doc:
  42.     nro -m\nro\an.nro $*.3 >$*.doc
  43.  
  44. archive : egrep.exe regexp.doc egrep.doc
  45.     pkarc u \release\egrep *.c *.h *.doc makefile readme tests egrep.exe
  46.