4 # Need to include from the current directory because "qt.h"
5 # will include <qtmd.h>.
10 # Fix this to be something meaningful for your system.
16 EXTHDRS = /usr/include/stdio.h
26 LIBS = libstp.a libqt.a
32 M = Makefile configuration
37 QTOBJS = qt.o qtmds.o qtmdc.o
60 $(CC) $(CFLAGS) -E $*.c > $*.E
62 all: libqt.a libstp.a $(PROGRAM) $(M)
64 libqt.a: $(QTOBJS) $(M)
65 ar crv libqt.a $(QTOBJS)
68 libstp.a: $(STPOBJS) $(M)
69 ar crv libstp.a $(STPOBJS)
72 $(PROGRAM): $(OBJS) $(LIBS) $(M)
73 @echo "Loading $(PROGRAM) ... "
74 # ld -o $(PROGRAM) /lib/crt0.o $(OBJS) -lc
75 $(LINKER) $(LDFLAGS) $(OBJS) $(LIBS) $(EXTLIBS) -o $(PROGRAM)
79 rm -f $(OBJS) $(PROGRAM) $(TMP_INIT) $(TMP_SWAP) $(DOC)
80 rm -f libqt.a libstp.a
81 rm -f $(QTOBJS) $(STPOBJS)
83 depend:; @mkmf -f $(MAKEFILE) PROGRAM=$(PROGRAM) DEST=$(DEST)
86 time/assim < raw | grep "^init" | sed 's/^init //' > $(TMP_INIT)
87 time/assim < raw | grep "^swap" | sed 's/^swap //' > $(TMP_SWAP)
88 soelim users.ms | tbl $(PR) | troff -t $(PR) -ms > $(DOC)
90 index:; @ctags -wx $(HDRS) $(SRCS)
92 print:; @$(PRINT) $(HDRS) $(SRCS)
96 tags: $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)
98 update: $(DEST)/$(PROGRAM)
100 $(DEST)/$(PROGRAM): $(SRCS) $(LIBS) $(HDRS) $(EXTHDRS)
101 @make -f $(MAKEFILE) DEST=$(DEST) install
103 QT_H = qt.h $(QTMD_H)
107 qtmdb.o: $(M) qtmdb.s b.h
108 meas.o: $(M) meas.c /usr/include/stdio.h $(QT_H) b.h stp.h
109 qt.o: $(M) qt.c $(QT_H)
110 stp.o: $(M) stp.c stp.h $(QT_H)
111 qtmds.o: $(M) qtmds.s
112 qtmdc.o: $(M) qtmdc.c $(QT_H)