home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / octa21fs.zip / octave / readline / makefile < prev    next >
Makefile  |  2000-01-15  |  6KB  |  136 lines

  1. #
  2. # Makefile
  3. #   Copyright (C) 1990, 1991, 1992 Free Software Foundation
  4. #
  5. # This file is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2 of the License, or
  8. # (at your option) any later version.
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13. # You should have received a copy of the GNU General Public License
  14. # along with this program; if not, write to the Free Software
  15. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  16. #
  17.  
  18. #
  19. # Makefile for readline and history libraries.
  20. #
  21.  
  22. # Modified by Klaus Gebhardt, 1995
  23.  
  24. include ../makeversions
  25.  
  26. CC = gcc $(CFLAGS)
  27.  
  28. %.o : %.c ; $(CC) -c $< -o $@
  29. %.obj : %.c ; $(CC) -c $< -o $@ -Zomf
  30.  
  31. %.imp : %.def ; emximp -o $@ $<
  32. %.a : %.imp ; emximp -o $@ $<
  33. %.lib : %.imp ; emximp -o $@ $<
  34.  
  35. READLINE_DEFINES = -DHAVE_CONFIG_H
  36. OFLAGS = -m486 -O3 -malign-loops=2 -malign-jumps=2 -malign-functions=2
  37. DEBUG_FLAGS = $(OFLAGS) -mprobe -DOS2 -D__ST_MT_ERRNO__
  38. INCL_FLAGS = -I. -I..
  39. CFLAGS = $(DEBUG_FLAGS) $(LOCAL_INCLUDES) $(INCL_FLAGS) $(READLINE_DEFINES)
  40. LIBS = -lxmalloc -ltermcap
  41. ZFLAGS = -Zdll -Zomf -Zcrtdll
  42.  
  43. CSOURCES = readline.c funmap.c keymaps.c vi_mode.c parens.c rltty.c \
  44.            complete.c bind.c isearch.c display.c signals.c emacs_keymap.c \
  45.            vi_keymap.c util.c kill.c undo.c macro.c input.c callback.c \
  46.            terminal.c xmalloc.c history.c histsearch.c histexpand.c \
  47.            histfile.c nls.c search.c setctype.c shell.c tilde.c
  48.  
  49. # The header files for this library.
  50. HSOURCES = readline.h rldefs.h chardefs.h keymaps.h history.h histlib.h \
  51.            posixstat.h posixdir.h posixjmp.h tilde.h rlconf.h rltty.h \
  52.            ansi_stdlib.h tcap.h
  53.  
  54. HISTOBJ = history.o histexpand.o histfile.o histsearch.o shell.o
  55. TILDEOBJ = tilde.o
  56.  
  57. EXEDEP = readline.c xmalloc.obj readline.lib
  58.  
  59. HISTOBJ  = history.obj histexpand.obj histfile.obj histsearch.obj shell.obj
  60. TILDEOBJ = tilde.obj
  61. OBJECTS  = readline.obj vi_mode.obj funmap.obj keymaps.obj parens.obj \
  62.            search.obj rltty.obj complete.obj bind.obj isearch.obj \
  63.            display.obj signals.obj util.obj kill.obj undo.obj macro.obj \
  64.            input.obj callback.obj terminal.obj nls.obj xmalloc.obj \
  65.            setctype.obj $(HISTOBJ) $(TILDEOBJ)
  66.  
  67. all: readline.a readline.lib readline.dll
  68.  
  69. readline.imp: readline.def
  70. readline.a: readline.imp
  71. readline.lib: readline.imp
  72.  
  73. readline.dll: readline.def $(OBJECTS)
  74.     gcc -o readline.dll readline.def $(OBJECTS) $(LIBS) $(ZFLAGS)
  75.  
  76. install: all
  77.     cp readline.a readline.lib ../lib
  78.     cp readline.h keymaps.h chardefs.h history.h tilde.h ../include/readline
  79.     cd doc & make install & cd ..
  80.     cp readline.dll h:/bin/dll
  81.  
  82. bind.obj: ansi_stdlib.h posixstat.h rldefs.h config.h rlconf.h
  83. bind.obj: readline.h keymaps.h chardefs.h tilde.h history.h
  84. callback.obj: rlconf.h rldefs.h config.h rlconf.h
  85. callback.obj: readline.h keymaps.h chardefs.h tilde.h
  86. complete.obj: ansi_stdlib.h posixdir.h posixstat.h rldefs.h config.h rlconf.h
  87. complete.obj: readline.h keymaps.h chardefs.h tilde.h
  88. display.obj: ansi_stdlib.h posixstat.h rldefs.h config.h rlconf.h
  89. display.obj: tcap.h readline.h keymaps.h chardefs.h tilde.h history.h
  90. funmap.obj: readline.h keymaps.h chardefs.h tilde.h
  91. funmap.obj: rlconf.h ansi_stdlib.h config.h
  92. histexpand.obj: ansi_stdlib.h history.h histlib.h config.h
  93. histfile.obj: ansi_stdlib.h history.h histlib.h config.h
  94. history.obj: ansi_stdlib.h history.h histlib.h config.h
  95. histsearch.obj: ansi_stdlib.h history.h histlib.h config.h
  96. input.obj: ansi_stdlib.h rldefs.h config.h rlconf.h
  97. input.obj: readline.h keymaps.h chardefs.h tilde.h
  98. isearch.obj: rldefs.h config.h rlconf.h readline.h keymaps.h chardefs.h
  99. isearch.obj: tilde.h ansi_stdlib.h history.h
  100. keymaps.obj: emacs_keymap.c vi_keymap.c
  101. keymaps.obj: keymaps.h chardefs.h rlconf.h ansi_stdlib.h
  102. keymaps.obj: readline.h keymaps.h chardefs.h tilde.h config.h
  103. kill.obj: ansi_stdlib.h rldefs.h config.h rlconf.h
  104. kill.obj: readline.h keymaps.h chardefs.h tilde.h history.h
  105. macro.obj: ansi_stdlib.h rldefs.h config.h rlconf.h
  106. macro.obj: readline.h keymaps.h chardefs.h tilde.h history.h
  107. nls.obj: ansi_stdlib.h rldefs.h config.h rlconf.h
  108. parens.obj: rlconf.h config.h readline.h keymaps.h chardefs.h tilde.h
  109. readline.obj: readline.h keymaps.h chardefs.h tilde.h cursor.h
  110. readline.obj: rldefs.h config.h rlconf.h history.h
  111. readline.obj: posixstat.h ansi_stdlib.h posixjmp.h
  112. rltty.obj: rldefs.h config.h rlconf.h rltty.h
  113. rltty.obj: readline.h keymaps.h chardefs.h tilde.h
  114. search.obj: rldefs.h config.h rlconf.h
  115. search.obj: readline.h keymaps.h chardefs.h tilde.h
  116. search.obj: ansi_stdlib.h history.h
  117. setctype.objbj: setctype.c cursor.h
  118. signals.obj: rldefs.h config.h rlconf.h
  119. signals.obj: readline.h keymaps.h chardefs.h tilde.h history.h
  120. terminal.obj: rldefs.h config.h rlconf.h tcap.h
  121. terminal.obj: readline.h keymaps.h chardefs.h tilde.h history.h
  122. tilde.obj: ansi_stdlib.h config.h tilde.h
  123. undo.obj: ansi_stdlib.h rldefs.h config.h rlconf.h
  124. undo.obj: readline.h keymaps.h chardefs.h tilde.h history.h
  125. util.obj: posixjmp.h ansi_stdlib.h rldefs.h config.h rlconf.h
  126. util.obj: readline.h keymaps.h chardefs.h tilde.h
  127. vi_mode.obj: rldefs.h config.h rlconf.h
  128. vi_mode.obj: readline.h keymaps.h chardefs.h tilde.h
  129. vi_mode.obj: history.h ansi_stdlib.h
  130. xmalloc.obj: config.h ansi_stdlib.h
  131.  
  132. clean :
  133.     rm -f *.a *.lib *.obj *.dll *.exe
  134.