home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / most423.zip / Makefile < prev    next >
Makefile  |  1997-03-05  |  1KB  |  48 lines

  1. # if you do not want the foc file used as help, but want a short one page
  2. # help summary then comment out the following line:
  3. #HELP = -DMOST_HELP_USE_DOC
  4. # and uncomment the next line:
  5. HELP =
  6.  
  7. CFILES = main.c buffer.c file.c window.c line.c display.c \
  8.           sysdep.c keym.c most.c search.c help.c dir.c cmd.c edit.c
  9. OBJS = main.o buffer.o file.o window.o line.o display.o \
  10.           sysdep.o keym.o most.o search.o help.o dir.o cmd.o edit.o
  11. HFILES = buffer.h file.h window.h line.h display.h \
  12.           sysdep.h keym.h most.h search.h externs.h
  13. MISC  = most.1 most.doc make.com aaa_read.me rtl.opt changes.txt makefile\
  14.           makecom.com
  15.  
  16. #CC = cc -g     # gcc -Wall -O6
  17. CC=gcc -O4 -Dunix
  18. #
  19. # Some systems might want to define sgi as well.
  20. #
  21. CFLAGS = $(HELP)
  22. EXEC = most.exe
  23.  
  24. $(EXEC): $(OBJS)
  25.     $(CC) -s -Zcrtdll $(CFLAGS) $(OBJS) -o $(EXEC) -ltermcap
  26.  
  27. unix:
  28.     shar -b $(CFILES) $(HFILES) $(MISC) > most.shar
  29.  
  30. unix_dist:
  31.     makekit -nmost -s40k $(CFILES) $(HFILES) $(MISC)
  32.  
  33. most.doc:    most.1
  34.         nroff -man $? > $@
  35.  
  36. export:
  37.     export -f export.lis
  38. lpr:
  39.     for file in $(CFILES) $(HFILES); do\
  40.         pprint north $$file -l c -p; \
  41.     done
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.