ack/util/amisc/Makefile

40 lines
915 B
Makefile
Raw Normal View History

1985-04-12 14:55:00 +00:00
EM = ../..
1986-02-11 11:22:43 +00:00
BINDIR = $(EM)/bin
1987-02-04 13:09:02 +00:00
MANDIR = $(EM)/man
LIBDIR = $(EM)/modules/lib
1985-04-12 14:55:00 +00:00
h = $(EM)/h
1987-03-17 16:37:04 +00:00
LDFLAGS = -i
CFLAGS = $(LDFLAGS) -O -I$h
1987-02-04 13:09:02 +00:00
ALL = anm asize astrip
OFILES = anm.o asize.o astrip.o
CFILES = anm.c asize.c astrip.c
LIBS = $(LIBDIR)/libobject.a
1985-04-12 14:55:00 +00:00
all: $(ALL)
1986-02-11 11:22:43 +00:00
anm: anm.c
1987-02-04 13:09:02 +00:00
$(CC) $(CFLAGS) -o anm anm.c $(LIBS)
1986-02-11 11:22:43 +00:00
asize: asize.c
1987-02-04 13:09:02 +00:00
$(CC) $(CFLAGS) -o asize asize.c $(LIBS)
1986-02-11 11:22:43 +00:00
astrip: astrip.c
1987-02-04 13:09:02 +00:00
$(CC) $(CFLAGS) -o astrip astrip.c $(LIBS)
1987-03-11 17:12:38 +00:00
#not installed:
ashow: ashow.c
$(CC) $(CFLAGS) -o ashow ashow.c $(LIBS)
1986-02-11 11:22:43 +00:00
install: all
1987-02-04 13:09:02 +00:00
for i in $(ALL); do rm -f $(BINDIR)/$$i; cp $$i $(BINDIR)/$$i; done
for i in anm.1 asize.1 astrip.1; do rm -f $(MANDIR)/$$i; cp $$i $(MANDIR)/$$i; done
1986-02-11 11:22:43 +00:00
cmp: all
1987-02-04 13:09:02 +00:00
-for i in $(ALL); do cmp $$i $(BINDIR)/$$i; done
-for i in anm.1 astrip.1 asize.1 ; do cmp $$i $(MANDIR)/$$i; done
1985-04-12 14:55:00 +00:00
1985-04-12 15:06:05 +00:00
clean: ; rm -f $(ALL) $(OFILES)
1985-04-12 14:55:00 +00:00
1987-02-04 13:09:02 +00:00
pr:
@pr `pwd`/Makefile `pwd`/anm.c `pwd`/astrip.c `pwd`/asize.c
1986-02-11 11:22:43 +00:00
opr:
make pr | opr