home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume3 / texchk / part1 / Makefile < prev    next >
Encoding:
Makefile  |  1986-11-30  |  592 b   |  28 lines

  1. CC = cc
  2.  
  3. #use the following DEFINES line for non-BSD systems
  4. #DEFINES = -Drindex=strchr
  5. DEFINES = -DBSD42
  6.  
  7. #use the following CFLAGS line for debugging
  8. #CFLAGS = -g $(DEFINES)
  9. CFLAGS = -O $(DEFINES)
  10.  
  11. SOURCES = texchk.c cmds.c texchars.c errors.c verbatim.c ctools.c
  12. OBJECTS = texchk.o cmds.o texchars.o errors.o verbatim.o ctools.o
  13. LIBS =
  14. BIN = /usr/local
  15. MS=1
  16. MAN = /usr/man/man$(MS)
  17.  
  18. texchk: $(OBJECTS)
  19.     $(CC) -o texchk $(CFLAGS) $(OBJECTS) $(LIBS)
  20. install: texchk
  21.     rm -f $(BIN)/texchk
  22.     mv texchk $(BIN)/texchk
  23. man: 
  24.     cp texchk.1 $(MAN)/texchk.$(MS)
  25.     man texchk
  26. clean:
  27.     rm -f texchk *.o *~
  28.