ack/util/arch/Makefile

50 lines
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)
all: arch aal
arch: arch.o
$(CC) -n -o arch arch.o $(LIBS)
aal: aal.o
$(CC) -i -o aal aal.o $(LIBS)
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