home *** CD-ROM | disk | FTP | other *** search
/ Merciful 3 / Merciful_Release_3.bin / software / e / elanv1.00.lha / elan / src / Makefile < prev    next >
Makefile  |  1996-06-07  |  4KB  |  124 lines

  1. #DFLAGS=-O4 -fomit-frame-pointer -funroll-loops 
  2. DFLAGS = -g -DDEBUG
  3.  
  4. CFLAGS=-pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wwrite-strings -I/usr/include/ncurses ${DFLAGS}
  5. LOADLIBES=-lm -lncurses
  6. LDFLAGS=${DFLAGS}
  7.  
  8. INDENTFLAGS=--tab-size8 \
  9.             --line-length78 \
  10.             --leave-preprocessor-space \
  11.             --format-first-column-comments \
  12.             --format-all-comments \
  13.             --comment-line-length78 \
  14.             --line-comments-indentation0 \
  15.             --comment-indentation33 \
  16.             --declaration-comment-column33 \
  17.             --no-comment-delimiters-on-blank-lines \
  18.             --dont-star-comments \
  19.             --blank-lines-after-declarations \
  20.             --blank-lines-after-procedures \
  21.             --else-endif-column33 \
  22.             --braces-on-if-line \
  23.             --cuddle-else \
  24.             --case-indentation0 \
  25.             --no-space-after-function-call-names \
  26.             --procnames-start-lines \
  27.             --space-after-cast \
  28.             --blank-before-sizeof \
  29.             --space-special-semicolon \
  30.             --declaration-indentation1 \
  31.             --no-blank-lines-after-commas \
  32.             --indent-level2 \
  33.             --continuation-indentation2 \
  34.             --continue-at-parentheses \
  35.             --parameter-indentation0
  36.  
  37.  
  38. GINDENTFLAGS=--tab-size8 \
  39.              --line-length78 \
  40.              --leave-preprocessor-space \
  41.              --format-first-column-comments \
  42.              --format-all-comments \
  43.              --comment-line-length78 \
  44.              --line-comments-indentation0 \
  45.              --comment-indentation33 \
  46.              --declaration-comment-column33 \
  47.              --no-comment-delimiters-on-blank-lines \
  48.              --dont-break-procedure-type \
  49.              --dont-star-comments \
  50.              --blank-lines-after-declarations \
  51.              --blank-lines-after-procedures \
  52.              --else-endif-column33 \
  53.              --braces-after-if-line \
  54.              --dont-cuddle-else \
  55.              --brace-indent0 \
  56.              --case-indentation8 \
  57.              --no-space-after-function-call-names \
  58.              --space-after-cast \
  59.              --blank-before-sizeof \
  60.              --space-special-semicolon \
  61.              --declaration-indentation1 \
  62.              --no-blank-lines-after-commas \
  63.              --indent-level8 \
  64.              --continuation-indentation8 \
  65.              --continue-at-parentheses \
  66.              --parameter-indentation0
  67.  
  68. SOURCES = config.c amiga/console.c ncurses/console.c \
  69.           unix-ansi/console.c const.c elan.c files.c global.h interf.h \
  70.           symbols.c symtable.c texts.c config.h amiga/console.h \
  71.           ncurses/console.h unix-ansi/console.h coredefs.h elan.h \
  72.           files.h interf.c params.h symbols.h amiga/system.h \
  73.           ncurses/system.h unix-ansi/system.h texts.h
  74.  
  75. all:
  76.     @echo "Use 'make target' where target is:"
  77.     @echo "    unix-ansi, ncurses or amiga"
  78.  
  79. ncurses::
  80.     rm -f console.h console.c system.h
  81.     ln -s ncurses/console.c; ln -s ncurses/console.h; ln -s ncurses/system.h
  82.  
  83. amiga::
  84.     delete console.h cosole.c system.h
  85.     makelink amiga/console.h
  86.     makelink amiga/console.c
  87.     makelink amiga/system.h
  88.  
  89. unix-ansi::
  90.     rm -f console.h console.c system.h
  91.     ln -s unix-ansi/console.c; ln -s unix-ansi/console.h; ln -s unix-ansi/system.h
  92.  
  93. ncurses amiga unix-ansi:: elan
  94.  
  95. clean:
  96.     rm -f elan core *.o *.map *~ *.sav console.h console.c system.h doc/*.dvi
  97.  
  98. indent-mickey:
  99.     indent ${INDENTFLAGS} $(SOURCES)
  100.  
  101. indent-giotti:
  102.     indent ${GINDENTFLAGS} $(SOURCES)
  103.  
  104. # Dependencies:
  105. elan: config.o console.o const.o elan.o files.o interf.o symbols.o symtable.o texts.o
  106.  
  107. elan.o: elan.c global.h coredefs.h texts.h symbols.h elan.h interf.h config.h
  108.  
  109. console.o: console.c global.h console.h
  110.  
  111. const.o: const.c global.h coredefs.h params.h
  112.  
  113. elan.o: elan.c global.h coredefs.h params.h texts.h symbols.h elan.h interf.h files.h
  114.  
  115. files.o: files.c global.h coredefs.h texts.h symbols.h elan.h interf.h files.h
  116.  
  117. interf.o: interf.c global.h coredefs.h params.h texts.h symbols.h elan.h interf.h config.h console.h 
  118.  
  119. symbols.o: symbols.c global.h coredefs.h symbols.h
  120.  
  121. symtable.o: symtable.c global.h coredefs.h symbols.h
  122.  
  123. texts.o: texts.c global.h coredefs.h texts.h
  124.