34 lines
494 B
Makefile
34 lines
494 B
Makefile
EM=../../../..
|
|
CEGLIB = $(EM)/lib/ceg
|
|
PARLIB = $(CEGLIB)/EM_parser
|
|
LIB = $(PARLIB)/obj_EM_pars
|
|
|
|
OFILES = dist.o
|
|
HFILES = arg_type.h em_parser.h
|
|
|
|
IFILES = -I$(EM)/h -I$(EM)/modules/h
|
|
CC = cc
|
|
|
|
.c.o :
|
|
$(CC) $(IFILES) -c $<
|
|
|
|
all : $(OFILES)
|
|
|
|
install: all
|
|
-mkdir $(CEGLIB)
|
|
-mkdir $(PARLIB)
|
|
-mkdir $(LIB)
|
|
cp $(OFILES) $(HFILES) $(LIB)
|
|
|
|
cmp: all
|
|
for i in $(OFILES) $(HFILES) ; do cmp $$i $(LIB)/$$i ; done
|
|
|
|
clean:
|
|
rm -f *.o
|
|
|
|
pr:
|
|
@pr Makefile arg_type.h dist.c em_parser.h
|
|
|
|
opr:
|
|
make pr | opr
|