###################################################################### # # Makefile for libpict 1.1 # SPDsoft 1995 # # :set tabstop=4 # include ../Make.cnf ######################################################## # End of configurable options # LIB = libpict.a SRCS = p24to8.c pack.c pict.c pict_98.c pict_9A.c OBJS = $(SRCS:.c=.o) HDRS = p24to8.h pict.h MAKEFILE = Makefile FILES = BACKUP = $(LIB:.a=.tgz) all: $(LIB) .c.o: $(CC) $(CCFLAGS) -c $< $(LIB): $(OBJS) $(AR) $(ARFLAGS) $(LIB) $(OBJS) install: all uninstall $(INSTALL_DATA) $(LIB) $(LIB_DIR) $(INSTALL_DATA) pict.h $(INC_DIR) $(RANLIB) $(LIB_DIR)/$(LIB) uninstall: rm -f $(LIB_DIR)/$(LIB) rm -f $(INC_DIR)/pict.h index:; @ctags -wx $(HDRS) $(SRCS) backup: $(BACKUP) @echo $(BACKUP) is up to date $(BACKUP): $(HDRS) $(SRCS) Makefile @mkdir $(BACKUP:.tgz=) @ln $(HDRS) $(SRCS) Makefile $(BACKUP:.tgz=) gtar cvzf $(BACKUP) $(BACKUP:.tgz=) @rm -rf $(BACKUP:.tgz=) print: @sh -c 'for file in $(SRCS) $(HDRS); \ do \ $(PR) -e8 -t $$file; \ $(ECHO) \\f; \ done' clean: rm -f $(OBJS) core tags clobber: clean rm -f $(LIB) new: rm -f $(LIB) $(OBJS) make all depend:; @$(ECHO) "How can you be so lazy?, do it yourself" ######################################## p24to8.o: p24to8.h pict.h pack.o: pict.h pict.o: pict.h pict_98.o: pict.h pict_9A.o: pict.h