# $Header$ #PARAMS do not remove this line! SRC_DIR = $(SRC_HOME)/util/arch EMH = $(TARGET_HOME)/h EMBIN = $(TARGET_HOME)/bin EMMAN = $(TARGET_HOME)/man LIB = $(TARGET_HOME)/modules/lib ULIB = $(UTIL_HOME)/modules/lib LIBS = $(LIB)/libobject.$(LIBSUF) $(LIB)/libprint.$(LIBSUF) \ $(LIB)/libstring.$(LIBSUF) $(LIB)/libsystem.$(LIBSUF) LINTLIBS = \ $(ULIB)/$(LINTPREF)object.$(LINTSUF) \ $(ULIB)/$(LINTPREF)print.$(LINTSUF) \ $(ULIB)/$(LINTPREF)string.$(LINTSUF) \ $(ULIB)/$(LINTPREF)system.$(LINTSUF) INCLUDES = -I$(EMH) CFLAGS= $(INCLUDES) -DDISTRIBUTION $(COPTIONS) LDFLAGS = $(LDOPTIONS) LINTFLAGS= $(INCLUDES) -DDISTRIBUTION $(LINTOPTIONS) all: arch aal arch: arch.$(SUF) $(CC) $(LDFLAGS) -o arch arch.$(SUF) $(LIBS) aal: aal.$(SUF) $(CC) $(LDFLAGS) -o aal aal.$(SUF) $(LIBS) arch.$(SUF): $(EMH)/arch.h $(SRC_DIR)/archiver.c $(CC) $(CFLAGS) -c $(SRC_DIR)/archiver.c mv archiver.$(SUF) arch.$(SUF) aal.$(SUF): $(EMH)/arch.h $(SRC_DIR)/archiver.c $(EMH)/ranlib.h $(EMH)/out.h $(CC) -DAAL $(CFLAGS) -c $(SRC_DIR)/archiver.c mv archiver.$(SUF) aal.$(SUF) clean: rm -f aal arch *.$(SUF) *.old lint: $(LINT) $(LINTFLAGS) -DAAL $(SRC_DIR)/archiver.c $(LINTLIBS) install : all rm -f $(EMBIN)/arch $(EMBIN)/aal cp aal $(EMBIN)/aal cp arch $(EMBIN)/arch rm -f $(EMMAN)/arch.1 $(EMMAN)/aal.1 $(EMMAN)/arch.5 cp $(SRC_DIR)/aal.1 $(EMMAN)/aal.1 cp $(SRC_DIR)/arch.1 $(EMMAN)/arch.1 cp $(SRC_DIR)/arch.5 $(EMMAN)/arch.5 cmp : all -cmp aal $(EMBIN)/aal -cmp arch $(EMBIN)/arch -cmp $(SRC_DIR)/aal.1 $(EMMAN)/aal.1 -cmp $(SRC_DIR)/arch.1 $(EMMAN)/arch.1 -cmp $(SRC_DIR)/arch.5 $(EMMAN)/arch.5 opr: make pr ^ opr pr: @pr $(SRC_DIR)/proto.make $(SRC_DIR)/archiver.c