home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume5 / rsed / Makefile < prev    next >
Encoding:
Makefile  |  1989-02-03  |  960 b   |  38 lines

  1. # in an '86 environment this better be compiled in large model
  2. SHELL=/bin/sh
  3.  
  4. # defines for curses that needs termcap BSD,  xenix,  etc....
  5. # CURSNAME  = -lcurses -ltermlib
  6. # CURSNAME    = -lcurses -ltermcap
  7. # defines for sysV curses needs cbreak() function call.
  8. # if yours has crmode() instead, you will have to hack defs.h
  9. # CURSNAME    = -lcurses 
  10.  
  11. # if your machine has strchr
  12. # DEFINES=-DSTRCHR=strchr
  13. # if your machine has index / rindex
  14. # DEFINES=-DSTRCHR=index
  15.  
  16.  
  17. # for 286 uncomment the line below
  18. # CFLAGS    =    -O -AL $(DEFINES)
  19. # LDFLAGS =    -AL -i
  20. # for most other systems
  21. # CFLAGS    =    -O $(DEFINES)
  22. # LDFLAGS    =    -n
  23. OBJECTS =    globals.o main.o mem.o command.o edit.o input.o stuff.o \
  24.         find.o multi.o
  25. CC=/bin/cc
  26.  
  27. all: rsed
  28.  
  29. rsed:    ${OBJECTS}
  30.         $(CC) ${LDFLAGS} ${OBJECTS} -o rsed $(CURSNAME)
  31.  
  32. tags: *.h *.c
  33.     ctags *.h *.c
  34.  
  35. shar:
  36.     shar -n 1 -e 1 -t 'Now read the README file and edit the Makefile for your system' \
  37.         README rsedhelp Makefile *.h *.c > rsed.shar
  38.