1984-06-26 10:08:37 +00:00
|
|
|
# $Header$
|
|
|
|
|
1984-06-26 10:03:31 +00:00
|
|
|
d=../..
|
|
|
|
h=$d/h
|
|
|
|
l=$d/lib
|
1987-02-05 14:47:22 +00:00
|
|
|
ml=$d/modules/lib
|
|
|
|
mh=$d/modules/h
|
1984-06-26 10:03:31 +00:00
|
|
|
|
|
|
|
DEC_PATH=decode
|
|
|
|
ENC_PATH=encode
|
|
|
|
DATA_PATH=$l/em_data.a
|
1987-02-05 14:47:22 +00:00
|
|
|
DECLIBS=$(ml)/libread_emk.a $(ml)/libeme.a $(ml)/libprint.a $(ml)/libstring.a \
|
|
|
|
$(ml)/libsystem.a
|
|
|
|
ENCLIBS=$(ml)/libread_emeV.a $(ml)/libemk.a $(ml)/libprint.a $(ml)/libstring.a \
|
|
|
|
$(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
|
|
|
|
|
|
|
all: $(DEC_PATH) $(ENC_PATH)
|
|
|
|
|
|
|
|
$(DEC_PATH): decode.o $(DATA_PATH)
|
1987-03-17 16:33:55 +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)
|
1987-03-17 16:33:55 +00:00
|
|
|
cc $(LDFLAGS) -o $(ENC_PATH) encode.o $(ENCLIBS) $(DATA_PATH)
|
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:
|
|
|
|
rm -f $(DEC_PATH) $(ENC_PATH) *.o *.old
|
1987-02-05 14:47:22 +00:00
|
|
|
|
1984-06-26 10:03:31 +00:00
|
|
|
install : all
|
1987-03-18 19:15:56 +00:00
|
|
|
rm -f $l/em_$(DEC_PATH) $l/em_$(ENC_PATH) $d/man/em_decode.6
|
1984-06-26 10:03:31 +00:00
|
|
|
cp $(DEC_PATH) $l/em_$(DEC_PATH)
|
|
|
|
cp $(ENC_PATH) $l/em_$(ENC_PATH)
|
1987-03-18 19:15:56 +00:00
|
|
|
cp em_decode.6 $d/man/em_decode.6
|
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)
|
|
|
|
-cmp em_decode.6 $d/man/em_decode.6
|
1984-06-26 10:03:31 +00:00
|
|
|
|
|
|
|
opr:
|
|
|
|
make pr ^ opr
|
|
|
|
pr:
|
1987-02-05 14:47:22 +00:00
|
|
|
@pr -n Makefile convert.c
|