ack/util/arch/Makefile

51 lines
1.1 KiB
Makefile
Raw Normal View History

1987-01-12 17:21:59 +00:00
EMHOME = ../..
EMH = $(EMHOME)/h
EMBIN = $(EMHOME)/bin
LIB = $(EMHOME)/modules/lib
LIBS = $(LIB)/libobject.a $(LIB)/libprint.a \
$(LIB)/libstring.a $(LIB)/libsystem.a
CFLAGS=-O -I$(EMH) -DDISTRIBUTION
1991-02-19 16:51:50 +00:00
LDFLAGS =
1987-01-12 17:21:59 +00:00
all: arch aal
arch: arch.o
1987-03-17 16:33:55 +00:00
$(CC) $(LDFLAGS) -o arch arch.o $(LIBS)
1987-01-12 17:21:59 +00:00
aal: aal.o
1987-03-17 16:33:55 +00:00
$(CC) $(LDFLAGS) -o aal aal.o $(LIBS)
1987-01-12 17:21:59 +00:00
arch.o: $(EMH)/arch.h archiver.c
$(CC) $(CFLAGS) -c archiver.c
mv archiver.o arch.o
aal.o: $(EMH)/arch.h archiver.c $(EMH)/ranlib.h $(EMH)/out.h
$(CC) -DAAL $(CFLAGS) -c archiver.c
mv archiver.o aal.o
clean:
rm -f aal arch *.o *.old
install : all
rm -f $(EMBIN)/arch $(EMBIN)/aal
cp aal $(EMBIN)/aal
cp arch $(EMBIN)/arch
1987-03-11 15:09:25 +00:00
rm -f $(EMHOME)/man/arch.1 $(EMHOME)/man/aal.1 $(EMHOME)/man/arch.5
1987-01-12 17:21:59 +00:00
cp aal.1 $(EMHOME)/man/aal.1
cp arch.1 $(EMHOME)/man/arch.1
1987-03-11 15:09:25 +00:00
cp arch.5 $(EMHOME)/man/arch.5
1987-01-12 17:21:59 +00:00
cmp : all
-cmp aal $(EMBIN)/aal
-cmp arch $(EMBIN)/arch
-cmp aal.1 $(EMHOME)/man/aal.1
-cmp arch.1 $(EMHOME)/man/arch.1
1987-03-11 15:09:25 +00:00
-cmp arch.5 $(EMHOME)/man/arch.5
1987-01-12 17:21:59 +00:00
opr:
make pr ^ opr
pr:
@pr Makefile archiver.c