1# Copyright (C) 1999, 2000 Core Technologies. 2# 3# This file is part of e93. 4# 5# e93 is free software; you can redistribute it and/or modify 6# it under the terms of the e93 LICENSE AGREEMENT. 7# 8# e93 is distributed in the hope that it will be useful, 9# but WITHOUT ANY WARRANTY; without even the implied warranty of 10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11# e93 LICENSE AGREEMENT for more details. 12# 13# You should have received a copy of the e93 LICENSE AGREEMENT 14# along with e93; see the file "LICENSE.TXT". 15 16 17# NOTE: This Makefile should be platform independent... 18# all machine specific changes should be made in the file 19# "machdef.mk" 20 21# Include machine/platform specific information 22include machdef.mk 23 24CFLAGS+=-I. $(TCL_INCLUDE) $(X_INCLUDE) $(OPTIONS) $(MACHINESPEC) 25 26OBJECTS = \ 27 e93.o \ 28 globals.o \ 29 tokens.o \ 30 shell.o \ 31 shellcmd.o \ 32 channels.o \ 33 buffer.o \ 34 views.o \ 35 docwin.o \ 36 edit.o \ 37 select.o \ 38 sparsearray.o \ 39 style.o \ 40 syntax.o \ 41 search.o \ 42 regex.o \ 43 clipbrd.o \ 44 undo.o \ 45 carray.o \ 46 text.o \ 47 varbind.o \ 48 keybind.o \ 49 abort.o \ 50 errors.o 51 52all : e93 53 54e93 : $(OBJECTS) xgui/libgui.a 55 $(CC) $(CFLAGS:N-D*:N-I*) $(OBJECTS) -Lxgui -lgui \ 56 $(X_LIB) -lX11 -lXmu -lXinerama \ 57 $(TCL_LIB) -ltcl$(TCL_VERSION) \ 58 $(EXTRALIBS) \ 59 -o e93 60 61xgui/libgui.a : 62 cd xgui && $(MAKE) 63 64clean : 65 cd xgui && $(MAKE) clean 66 rm -f *.o 67 rm -f e93 68 69install : 70 cp e93 $(PREFIX)/bin 71 mkdir -p $(PREFIX)/lib/e93lib 72 rm -rf $(PREFIX)/lib/e93lib/* 73 cp -r e93lib $(PREFIX)/lib/ 74 cp README.e93 $(PREFIX)/lib/e93lib 75 chmod 444 $(PREFIX)/lib/e93lib/README.e93 76 cp README.regex $(PREFIX)/lib/e93lib 77 chmod 444 $(PREFIX)/lib/e93lib/README.regex 78 cp README.syntaxmaps $(PREFIX)/lib/e93lib 79 chmod 444 $(PREFIX)/lib/e93lib/README.syntaxmaps 80 81install-strip : install 82 strip $(PREFIX)/bin/e93 83