ack/util/data/Makefile

41 lines
733 B
Makefile
Raw Normal View History

1985-01-01 18:35:40 +00:00
# $Header$
1985-01-01 18:34:12 +00:00
d=../..
h=$d/h
l=$d/lib
1989-02-16 16:33:29 +00:00
AR=ar
SUF=o
LIBSUF=ma
1985-01-01 18:34:12 +00:00
1989-02-16 16:33:29 +00:00
OBJ=em_mnem.$(SUF) em_pseu.$(SUF) em_flag.$(SUF) em_ptyp.$(SUF)
1985-01-01 18:34:12 +00:00
1989-02-16 16:33:29 +00:00
DATA_PATH=em_data.$(LIBSUF)
1985-01-01 18:34:12 +00:00
1989-02-16 16:33:29 +00:00
CFLAGS=-O -I$h $(COPT)
.SUFFIXES: .$(SUF)
.c.$(SUF):
$(CC) -c $(CFLAGS) $*.c
1985-01-01 18:34:12 +00:00
$(DATA_PATH): $(OBJ)
1989-02-16 16:33:29 +00:00
$(AR) rv $(DATA_PATH) $(OBJ)
1987-02-26 19:41:49 +00:00
-sh -c 'ranlib $(DATA_PATH)'
1985-01-01 18:34:12 +00:00
1989-02-16 16:33:29 +00:00
em_flag.$(SUF): $h/em_flag.h
1985-01-01 18:34:12 +00:00
1989-02-16 16:33:29 +00:00
em_ptyp.$(SUF): $h/em_flag.h $h/em_ptyp.h
1985-01-01 18:34:12 +00:00
install : $(DATA_PATH)
1987-02-26 19:41:49 +00:00
-cmp -s $(DATA_PATH) $l/$(DATA_PATH) || { cp $(DATA_PATH) $l/$(DATA_PATH) ; sh -c 'ranlib $l/$(DATA_PATH)' ; }
1985-01-01 18:34:12 +00:00
cmp : $(DATA_PATH)
1989-02-16 16:33:29 +00:00
-cmp $(DATA_PATH) $l/$(DATA_PATH)
1985-01-01 18:34:12 +00:00
clean:
rm -f $(OBJ) $(DATA_PATH) *.old
opr:
make pr ^ opr
pr:
@pr Makefile em_mnem.c em_pseu.c em_flag.c em_ptyp.c