CC=cc # if you are running under usg, put -Dusg in CFLAGS ... CFLAGS = .c.o: ; $(CC) -c $(CFLAGS) $*.c .f.o: ; f77 -c -g $*.f libobj = \ clib.o decode.o help.o rdseq.o \ lsearch.o adecode.o string_subst.o name-expander.o\ usage.o daemonize.o strrev.o \ open_file.o nread.o regex.o regex-aux.o regex-parse.o \ mkstemp.o usleep.o backup.o settty.o LCFILES = \ clib.c decode.c help.c rdseq.c \ lsearch.c adecode.c string_subst.c name-expander.c\ usage.c daemonize.c strrev.c \ open_file.c nread.c regex.c regex-aux.c regex-parse.c \ mkstemp.c usleep.c backup.c settty.c wlibobj = \ curs_help.o curs_lib.o intro.o kbd.o \ mapping.o w-open-file.o intro-init.o vars.o \ apropos.o str-to-num.o str-cvt.o \ big-print.o WCFILES = \ curs_help.c curs_lib.c intro.c kbd.c \ mapping.c w-open-file.c intro-init.c vars.c \ apropos.c str-to-num.c str-cvt.c \ big-print.c CFILES = $(WCFILES) $(LCFILES) all: lfaulkn.a @echo Completed DOCUMENT: $(CFILES) prdoc $(CFILES) > DOCUMENT install: echo Not installing libs clean: # -rm -f lfaulkn.a lf77faulkn.a -rm -f *.o lfaulkn.a: $(libobj) $(wlibobj) ar ruc lfaulkn.a $(libobj) $(wlibobj) ranlib lfaulkn.a 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 curs_help.o: curs_help.c ./curses.h ./extern.h curs_lib.o: curs_lib.c ./extern.h ./curses.h ./term.h ./faulkn.h ./win-types.h intro.o: intro.c ./curses.h ./config.h ./win-types.h ./extern.h ./faulkn.h kbd.o: kbd.c ./curses.h ./config.h ./extern.h mapping.o: mapping.c ./curses.h ./extern.h ./win-types.h w-open-file.o: w-open-file.c ./curses.h intro-init.o: intro-init.c ./config.h ./win-types.h vars.o: vars.c ./curses.h ./win-types.h ./extern.h apropos.o: apropos.c ./curses.h ./../lib/regex.h str-to-num.o: str-to-num.c ./curses.h ./faulkn.h str-cvt.o: str-cvt.c big-print.o: big-print.c ./curses.h clib.o: clib.c ./faulkn.h decode.o: decode.c help.o: help.c rdseq.o: rdseq.c lsearch.o: lsearch.c ./faulkn.h adecode.o: adecode.c string_subst.o: string_subst.c ./faulkn.h name-expander.o: name-expander.c usage.o: usage.c daemonize.o: daemonize.c strrev.o: strrev.c open_file.o: open_file.c ./faulkn.h nread.o: nread.c regex.o: regex.c ./regex.h regex-aux.o: regex-aux.c regex-parse.o: regex-parse.c mkstemp.o: mkstemp.c usleep.o: usleep.c backup.o: backup.c settty.o: settty.c