ack/util/arch/proto.make
1991-08-27 10:18:09 +00:00

67 lines
1.6 KiB
Makefile

# $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 aal.1 $(EMMAN)/aal.1
cp arch.1 $(EMMAN)/arch.1
cp arch.5 $(EMMAN)/arch.5
cmp : all
-cmp aal $(EMBIN)/aal
-cmp arch $(EMBIN)/arch
-cmp aal.1 $(EMMAN)/aal.1
-cmp arch.1 $(EMMAN)/arch.1
-cmp arch.5 $(EMMAN)/arch.5
opr:
make pr ^ opr
pr:
@pr $(SRC_DIR)/proto.make $(SRC_DIR)/archiver.c