Makefile support to clean shared library objects.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9013 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02master
parent
b1d6d4faa3
commit
45f76fe7cb
|
@ -33,11 +33,11 @@ install::
|
|||
|
||||
ocamlrun$(EXE): libcamlrun.a prims.o
|
||||
$(MKEXE) $(BYTECCLINKOPTS) -o ocamlrun$(EXE) \
|
||||
prims.o libcamlrun.a $(BYTECCLIBS)
|
||||
prims.o libcamlrun.a $(BYTECCLIBS)
|
||||
|
||||
ocamlrund$(EXE): libcamlrund.a prims.o
|
||||
$(MKEXE) -g $(BYTECCLINKOPTS) -o ocamlrund$(EXE) \
|
||||
prims.o libcamlrund.a $(BYTECCLIBS)
|
||||
prims.o libcamlrund.a $(BYTECCLIBS)
|
||||
|
||||
libcamlrun.a: $(OBJS)
|
||||
ar rc libcamlrun.a $(OBJS)
|
||||
|
|
|
@ -41,8 +41,8 @@ all:: ocamlrun$(EXE) ld.conf libcamlrun.$(A)
|
|||
.PHONY: all
|
||||
|
||||
ld.conf: ../config/Makefile
|
||||
echo "$(STUBLIBDIR)" >ld.conf
|
||||
echo "$(LIBDIR)" >>ld.conf
|
||||
echo "$(STUBLIBDIR)" > ld.conf
|
||||
echo "$(LIBDIR)" >> ld.conf
|
||||
|
||||
install::
|
||||
cp ocamlrun$(EXE) $(BINDIR)/ocamlrun$(EXE)
|
||||
|
@ -50,8 +50,8 @@ install::
|
|||
cd $(LIBDIR); $(RANLIB) libcamlrun.$(A)
|
||||
if test -d $(LIBDIR)/caml; then : ; else mkdir $(LIBDIR)/caml; fi
|
||||
for i in $(PUBLIC_INCLUDES); do \
|
||||
sed -f ../tools/cleanup-header $$i > $(LIBDIR)/caml/$$i; \
|
||||
done
|
||||
sed -f ../tools/cleanup-header $$i > $(LIBDIR)/caml/$$i; \
|
||||
done
|
||||
cp ld.conf $(LIBDIR)/ld.conf
|
||||
.PHONY: install
|
||||
|
||||
|
@ -84,10 +84,10 @@ jumptbl.h : instruct.h
|
|||
-e '/^}/q' instruct.h > jumptbl.h
|
||||
|
||||
version.h : ../VERSION
|
||||
echo "#define OCAML_VERSION \"`head -1 ../VERSION`\"" >version.h
|
||||
echo "#define OCAML_VERSION \"`head -1 ../VERSION`\"" > version.h
|
||||
|
||||
clean:
|
||||
rm -f ocamlrun$(EXE) ocamlrund$(EXE) *.$(O) *.$(A)
|
||||
rm -f ocamlrun$(EXE) ocamlrund$(EXE) *.$(O) *.$(A) *.$(SO)
|
||||
rm -f primitives prims.c opnames.h jumptbl.h ld.conf
|
||||
rm -f version.h
|
||||
.PHONY: clean
|
||||
|
|
Loading…
Reference in New Issue