1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
#***********************************************************************
#* *
#* CamlIDL *
#* *
#* Xavier Leroy, projet Cristal, INRIA Rocquencourt *
#* *
#* Copyright 1999 Institut National de Recherche en Informatique et *
#* en Automatique. All rights reserved. This file is distributed *
#* under the terms of the GNU Library General Public License. *
#* *
#***********************************************************************
#* $Id: Makefile.unix,v 1.5 2000-08-19 11:05:00 xleroy Exp $
OBJS=idlalloc.o comintf.o comerror.o
all: dllcamlidl.so libcamlidl.a
dllcamlidl.so libcamlidl.a: $(OBJS)
- rm -f $@
ocamlmklib -o camlidl $(OBJS)
#libcamlidl.a: $(OBJS)
# - rm -f $@
# ar rc $@ $(OBJS)
# $(RANLIB) $@
install:
cp camlidlruntime.h $(DESTDIR)$(OCAMLLIB)/caml/camlidlruntime.h
cp libcamlidl.a $(DESTDIR)$(OCAMLLIB)/libcamlidl.a
cp dllcamlidl.so $(DESTDIR)$(OCAMLLIB)/stublibs/dllcamlidl.so
cd $(DESTDIR)$(OCAMLLIB); $(RANLIB) libcamlidl.a
clean:
rm -f *.a *.o *.so
.SUFFIXES: .c .o
.c.o:
$(OCAMLC) -ccopt "$(CFLAGS)" $<
$(OBJS): camlidlruntime.h comstuff.h
depend:
|