CC=cc # if you are using the sun function loader, # you must define -Bstatic in CFLAGS # if you are using system V, you must define -Dusg in CFLAGS CFLAGS = -g -Bstatic LFAULKN = ../lib/lfaulkn.a CURSESLIB = -lcurses # if usg, you don't need -termcap TERMLIB = -ltermcap MATHLIB = -lm DESTDIR = /usr/local/bin/ X10LIB = -lX X11LIB = -lX11 .c.o: ; $(CC) -c $(CFLAGS) $*.c objs = misc.o main.o edit.o commands.o\ commands2.o output.o similarity.o pattern.o\ interpret.o moves.o intro.o comments.o store.o\ squeeze.o modes.o\ jurka-m.o lnfac.o jurkac.o w-align.o ins-del.o display.o \ composition.o rename.o create.o mouse.o Release.o save.o \ alt-consensus.o seq-sync.o compensated.o alias.o h-save.o \ repeat.o incload-fnc.o sysload.o dynamic-hlite.o undo.o \ verify.o bind.o debug.o revobjs = bind.o verify.o alt-consensus.o save.o Release.o \ mouse.o create.o rename.o composition.o display.o \ ins-del.o w-align.o jurkac.o lnfac.o jurka-m.o \ squeeze.o store.o comments.o \ intro.o moves.o interpret.o pattern.o similarity.o \ output.o commands2.o commands.o edit.o \ main.o misc.o # CFILES are here for make depend CFILES = misc.c main.c edit.c commands.c\ commands2.c output.c similarity.c pattern.c\ interpret.c moves.c intro.c comments.c store.c\ squeeze.c jurka-m.c lnfac.c \ jurkac.c w-align.c ins-del.c display.c \ composition.c rename.c create.c \ mouse.c xmase.c mouse_type-X11.c mouse_type-X10.c save.c modes.c \ alt-consensus.c seq-sync.c compensated.c h-save.c \ repeat.c incload-fnc.c sysload.c undo.c dynamic-hlite.c \ verify.c bind.c debug.c HFILES = edseq.h extern.h extern2.h globals.h path.h all: mase mase-demo lint: $(CFILES) lint $(CFILES) > lint X11: x11 X10: x10 x11: xmase mouse_type-X11 x10: xmase mouse_type-X10 xmase: xmase.c $(CC) $(CFLAGS) -o xmase xmase.c $(LFAULKN) mouse_type-X10: mouse_type-X10.c $(CC) $(CFLAGS) -o mouse_type-X10 mouse_type-X10.c \ $(LFAULKN) $(X10LIB) @rm mouse_type ln mouse_type-X10 mouse_type mouse_type-X11: mouse_type-X11.c X11-error.c $(CC) $(CFLAGS) -o mouse_type-X11 mouse_type-X11.c \ X11-error.c $(LFAULKN) $(X11LIB) @rm mouse_type ln mouse_type-X11 mouse_type force: rm -f mase make mase mase-demo: mase-demo.c path.h echo "#!/bin/sh" > mase-demo $(CC) -E mase-demo.c | grep mase >> mase-demo chmod +x mase-demo make-mase-demo: make-mase-demo.c path.h $(CC) -o make-mase-demo make-mase-demo.c max-dif: max-dif.o $(LFAULKN) $(CC) -g -o max-dif max-dif.o $(LFAULKN) rev: $(revobjs) install: $(DESTDIR)/mase $(DESTDIR)/mase-demo $(DESTDIR)/mase: mase install $(IFLAGS) -c -m 0711 mase $(DESTDIR)/mase $(DESTDIR)/mase-demo: mase-demo install $(IFLAGS) -c -m 0755 mase-demo $(DESTDIR)/mase-demo TAGS: $(CFILES) $(HFILES) etags -t $(CFILES) $(HFILES) mase: $(objs) $(LFAULKN) $(CC) $(CFLAGS) -o mase.new $(objs) \ $(LFAULKN) $(CURSESLIB) $(TERMLIB) $(MATHLIB) -rm -f mase mv mase.new mase size mase sysload.o: $(CC) -c $(CFLAGS) -DSUN4_0 sysload.c clean: -rm -f *.o -rm -f mase depend: $(CC) -M ${COPTS} ${CFILES} | \ sed -e ':loop' \ -e 's/\.\.\/[^ /]*\/\.\./../' \ -e 't loop' | \ grep -v /usr/include | \ awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \ else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \ else rec = rec " " $$2 } } \ END { print rec } ' > makedep echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep echo '$$r makedep' >>eddep echo 'w' >>eddep cp Makefile Makefile.bak ex - Makefile < eddep rm eddep makedep # DO NOT DELETE THIS LINE - make depend uses it misc.o: misc.c ./edseq.h ./extern.h ./curses.h ./../lib/faulkn.h main.o: main.c ./edseq.h ./path.h ./globals.h ./curses.h ./../lib/faulkn.h edit.o: edit.c ./edseq.h ./extern.h ./curses.h ./path.h ./../lib/win-types.h commands.o: commands.c ./edseq.h ./extern.h ./curses.h ./../lib/win-types.h commands2.o: commands2.c ./edseq.h ./extern.h ./curses.h ./path.h commands2.o: ./../lib/faulkn.h output.o: output.c ./edseq.h ./extern.h ./curses.h ./../lib/faulkn.h similarity.o: similarity.c ./edseq.h ./extern.h ./curses.h ./../lib/faulkn.h pattern.o: pattern.c ./edseq.h ./extern.h ./curses.h ./../lib/regex.h pattern.o: ./../lib/faulkn.h interpret.o: interpret.c ./edseq.h ./extern.h ./curses.h ./path.h interpret.o: ./../lib/win-types.h ./../lib/faulkn.h moves.o: moves.c ./edseq.h ./extern.h ./curses.h intro.o: intro.c ./edseq.h ./extern.h ./curses.h ./extern2.h intro.o: ./../lib/win-types.h comments.o: comments.c ./edseq.h ./extern.h ./curses.h ./../lib/faulkn.h store.o: store.c ./edseq.h ./extern.h ./curses.h ./../lib/win-types.h store.o: ./../lib/faulkn.h squeeze.o: squeeze.c ./edseq.h ./extern.h ./curses.h jurka-m.o: jurka-m.c ./edseq.h ./extern.h ./curses.h ./../lib/faulkn.h lnfac.o: lnfac.c jurkac.o: jurkac.c w-align.o: w-align.c ./edseq.h ./extern.h ./curses.h ins-del.o: ins-del.c ./edseq.h ./extern.h ./curses.h ./../lib/faulkn.h ./undo.h display.o: display.c ./edseq.h ./extern.h ./curses.h composition.o: composition.c ./edseq.h ./extern.h ./curses.h ./../lib/faulkn.h rename.o: rename.c ./edseq.h ./extern.h ./curses.h create.o: create.c ./edseq.h ./extern.h ./curses.h ./../lib/faulkn.h mouse.o: mouse.c ./edseq.h ./extern.h ./curses.h save.o: save.c ./edseq.h ./extern.h ./curses.h ./../lib/faulkn.h modes.o: modes.c ./edseq.h ./extern.h ./curses.h ./../lib/win-types.h alt-consensus.o: alt-consensus.c ./edseq.h ./extern.h ./curses.h alt-consensus.o: ./../lib/faulkn.h seq-sync.o: seq-sync.c ./edseq.h ./extern.h ./curses.h ./../lib/faulkn.h compensated.o: compensated.c ./edseq.h ./extern.h ./curses.h h-save.o: h-save.c ./edseq.h ./extern.h ./curses.h repeat.o: repeat.c ./edseq.h ./extern.h ./curses.h ./../lib/win-types.h incload-fnc.o: incload-fnc.c ./sysload.h ./edseq.h ./extern.h ./curses.h sysload.o: sysload.c ./sysload.h undo.o: undo.c ./edseq.h ./extern.h ./curses.h ./undo.h dynamic-hlite.o: dynamic-hlite.c ./../mase/edseq.h ./../mase/extern.h dynamic-hlite.o: ./../mase/curses.h ./../lib/win-types.h verify.o: verify.c ./edseq.h ./extern.h ./curses.h bind.o: bind.c ./edseq.h ./extern.h ./curses.h ./extern2.h ./../lib/win-types.h debug.o: debug.c ./extern.h