1991-08-27 10:18:09 +00:00
|
|
|
# $Header$
|
|
|
|
|
|
|
|
#PARAMS do not remove this line!
|
|
|
|
|
|
|
|
SRC_DIR = $(SRC_HOME)/util/amisc
|
|
|
|
BINDIR = $(TARGET_HOME)/bin
|
|
|
|
LDFLAGS = $(LDOPTIONS)
|
|
|
|
INCLUDES = -I$(TARGET_HOME)/h
|
|
|
|
CFLAGS = $(INCLUDES) $(COPTIONS)
|
|
|
|
LINTFLAGS = $(INCLUDES) $(LINTOPTIONS)
|
|
|
|
|
1991-10-31 11:04:02 +00:00
|
|
|
ALL = anm asize astrip ashow
|
1991-08-27 10:18:09 +00:00
|
|
|
LIBS = $(TARGET_HOME)/modules/lib/libobject.$(LIBSUF)
|
|
|
|
LINTLIBS = $(UTIL_HOME)/modules/lib/$(LINTPREF)object.$(LINTSUF)
|
|
|
|
|
|
|
|
all: $(ALL)
|
|
|
|
|
|
|
|
anm: $(SRC_DIR)/anm.c
|
|
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o anm $(SRC_DIR)/anm.c $(LIBS)
|
|
|
|
asize: $(SRC_DIR)/asize.c
|
|
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o asize $(SRC_DIR)/asize.c $(LIBS)
|
|
|
|
astrip: $(SRC_DIR)/astrip.c
|
|
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o astrip $(SRC_DIR)/astrip.c $(LIBS)
|
|
|
|
ashow: $(SRC_DIR)/ashow.c
|
|
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o ashow $(SRC_DIR)/ashow.c $(LIBS)
|
|
|
|
|
|
|
|
install: all
|
|
|
|
for i in $(ALL); do rm -f $(BINDIR)/$$i; cp $$i $(BINDIR)/$$i; done
|
1991-10-14 09:38:04 +00:00
|
|
|
if [ $(DO_MACHINE_INDEP) = y ] ; \
|
1991-11-05 15:31:14 +00:00
|
|
|
then for i in anm.1 asize.1 astrip.1; do mk_manpage $(SRC_DIR)/$$i $(TARGET_HOME) ; done ; \
|
1991-10-14 09:38:04 +00:00
|
|
|
fi
|
1991-08-27 10:18:09 +00:00
|
|
|
|
|
|
|
cmp: all
|
|
|
|
-for i in $(ALL); do cmp $$i $(BINDIR)/$$i; done
|
|
|
|
|
|
|
|
clean: ; rm -f $(ALL) *.$(SUF)
|
|
|
|
|
|
|
|
lint:
|
|
|
|
$(LINT) $(LINTFLAGS) $(SRC_DIR)/anm.c $(LINTLIBS)
|
|
|
|
$(LINT) $(LINTFLAGS) $(SRC_DIR)/asize.c $(LINTLIBS)
|
|
|
|
$(LINT) $(LINTFLAGS) $(SRC_DIR)/astrip.c $(LINTLIBS)
|
|
|
|
$(LINT) $(LINTFLAGS) $(SRC_DIR)/ashow.c $(LINTLIBS)
|
|
|
|
|
|
|
|
pr:
|
|
|
|
@pr $(SRC_DIR)/proto.make $(SRC_DIR)/anm.c $(SRC_DIR)/astrip.c $(SRC_DIR)/asize.c $(SRC_DIR)/ashow.c
|
|
|
|
|
|
|
|
opr:
|
|
|
|
make pr | opr
|