1984-06-26 10:08:37 +00:00
|
|
|
# $Header$
|
|
|
|
|
1988-03-14 14:29:31 +00:00
|
|
|
EMHOME=../..
|
|
|
|
h=$(EMHOME)/h
|
|
|
|
l=$(EMHOME)/lib
|
|
|
|
ml=$(EMHOME)/modules/lib
|
|
|
|
mh=$(EMHOME)/modules/h
|
1984-06-26 10:03:31 +00:00
|
|
|
|
|
|
|
DEC_PATH=decode
|
|
|
|
ENC_PATH=encode
|
|
|
|
DATA_PATH=$l/em_data.a
|
1987-08-06 18:56:36 +00:00
|
|
|
DECLIBS=$(ml)/libread_emkV.a $(ml)/libeme.a $(ml)/liballoc.a $(ml)/libprint.a $(ml)/libstring.a \
|
1987-02-05 14:47:22 +00:00
|
|
|
$(ml)/libsystem.a
|
1987-08-06 18:56:36 +00:00
|
|
|
ENCLIBS=$(ml)/libread_emeV.a $(ml)/libemk.a $(ml)/liballoc.a $(ml)/libprint.a $(ml)/libstring.a \
|
1987-02-05 14:47:22 +00:00
|
|
|
$(ml)/libsystem.a
|
|
|
|
HFILES=$h/em_mnem.h $h/em_spec.h $h/em_pseu.h $h/em_flag.h $h/em_ptyp.h \
|
|
|
|
$h/em_mes.h $(mh)/em.h $(mh)/em_comp.h
|
1984-06-26 10:03:31 +00:00
|
|
|
|
1987-02-05 14:47:22 +00:00
|
|
|
CFLAGS=-O -I$(mh) -I$h
|
1987-03-17 16:33:55 +00:00
|
|
|
LDFLAGS = -i
|
1984-06-26 10:03:31 +00:00
|
|
|
|
1988-03-14 14:29:31 +00:00
|
|
|
all: $(DEC_PATH) $(ENC_PATH) esize
|
1984-06-26 10:03:31 +00:00
|
|
|
|
|
|
|
$(DEC_PATH): decode.o $(DATA_PATH)
|
1988-03-14 14:29:31 +00:00
|
|
|
$(CC) $(LDFLAGS) -o $(DEC_PATH) decode.o $(DECLIBS) $(DATA_PATH)
|
1984-06-26 10:03:31 +00:00
|
|
|
|
|
|
|
$(ENC_PATH): encode.o $(DATA_PATH)
|
1988-03-14 14:29:31 +00:00
|
|
|
$(CC) $(LDFLAGS) -o $(ENC_PATH) encode.o $(ENCLIBS) $(DATA_PATH)
|
|
|
|
|
|
|
|
esize: esize.o
|
|
|
|
$(CC) -o esize esize.o
|
1984-06-26 10:03:31 +00:00
|
|
|
|
1987-02-05 14:47:22 +00:00
|
|
|
convert.o: $(HFILES)
|
1984-06-26 10:03:31 +00:00
|
|
|
|
1987-02-05 14:47:22 +00:00
|
|
|
encode.o: convert.o
|
|
|
|
cp convert.o encode.o
|
|
|
|
|
|
|
|
decode.o: convert.o
|
|
|
|
cp convert.o decode.o
|
1984-06-26 10:03:31 +00:00
|
|
|
|
|
|
|
clean:
|
1988-03-14 14:29:31 +00:00
|
|
|
rm -f $(DEC_PATH) $(ENC_PATH) esize *.o *.old
|
1987-02-05 14:47:22 +00:00
|
|
|
|
1984-06-26 10:03:31 +00:00
|
|
|
install : all
|
1988-03-14 14:29:31 +00:00
|
|
|
rm -f $l/em_$(DEC_PATH) $l/em_$(ENC_PATH) $(EMHOME)/bin/esize $(EMHOME)/man/em_decode.6 $(EMHOME)/man/esize.1
|
1984-06-26 10:03:31 +00:00
|
|
|
cp $(DEC_PATH) $l/em_$(DEC_PATH)
|
|
|
|
cp $(ENC_PATH) $l/em_$(ENC_PATH)
|
1988-03-14 14:29:31 +00:00
|
|
|
cp esize $(EMHOME)/bin/esize
|
|
|
|
cp em_decode.6 $(EMHOME)/man/em_decode.6
|
|
|
|
cp esize.1 $(EMHOME)/man/esize.1
|
1984-06-26 10:03:31 +00:00
|
|
|
|
|
|
|
cmp : all
|
1987-03-18 19:15:56 +00:00
|
|
|
-cmp $(DEC_PATH) $l/em_$(DEC_PATH)
|
|
|
|
-cmp $(ENC_PATH) $l/em_$(ENC_PATH)
|
1988-03-14 14:29:31 +00:00
|
|
|
-cmp esize $(EMHOME)/bin/esize
|
|
|
|
-cmp em_decode.6 $(EMHOME)/man/em_decode.6
|
|
|
|
-cmp esize.1 $(EMHOME)/man/esize.1
|
1984-06-26 10:03:31 +00:00
|
|
|
|
|
|
|
opr:
|
|
|
|
make pr ^ opr
|
|
|
|
pr:
|
1988-03-14 14:29:31 +00:00
|
|
|
@pr -n Makefile convert.c esize.c
|