DEST = $(DESTDIR)/usr/new EXTHDRS = /usr/include/stdio.h HDRS = LDFLAGS = LIBS = LINKER = cc MAKEFILE = Makefile OBJS = sccstorcs.o PRINT = pr PROGRAM = sccstorcs SRCS = sccstorcs.c all: $(PROGRAM) $(PROGRAM): $(OBJS) $(LIBS) @echo -n "Loading $(PROGRAM) ... " @$(LINKER) $(LDFLAGS) $(OBJS) $(LIBS) -o $(PROGRAM) @echo "done" clean:; @rm -f $(OBJS) depend:; @mkmf -f $(MAKEFILE) PROGRAM=$(PROGRAM) DEST=$(DEST) index:; @ctags -wx $(HDRS) $(SRCS) cp: $(PROGRAM) @echo Installing $(PROGRAM) in $(DEST) @cp $(PROGRAM) $(DEST) @strip $(DEST)/$(PROGRAM) print:; @$(PRINT) $(HDRS) $(SRCS) program: $(PROGRAM) tags: $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS) update: $(DEST)/$(PROGRAM) $(DEST)/$(PROGRAM): $(SRCS) $(LIBS) $(HDRS) $(EXTHDRS) @make -f $(MAKEFILE) DEST=$(DEST) cp ### sccstorcs.o: /usr/include/stdio.h