1999-11-17 10:59:06 -08:00
|
|
|
#########################################################################
|
|
|
|
# #
|
|
|
|
# Objective Caml #
|
|
|
|
# #
|
|
|
|
# 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$
|
|
|
|
|
1996-02-22 04:52:45 -08:00
|
|
|
# Makefile for the str library
|
|
|
|
|
|
|
|
!include ..\..\config\Makefile.nt
|
|
|
|
|
|
|
|
# Compilation options
|
|
|
|
CC=$(BYTECC)
|
|
|
|
CFLAGS=-I$(REGEXLIB) -I..\..\byterun $(BYTECCCOMPOPTS)
|
2000-02-05 04:16:09 -08:00
|
|
|
CAMLC=..\..\boot\ocamlrun ..\..\ocamlc -I ..\..\boot
|
1996-04-30 07:53:58 -07:00
|
|
|
CAMLOPT=..\..\boot\ocamlrun ..\..\ocamlopt -I ..\..\stdlib
|
1996-02-22 04:52:45 -08:00
|
|
|
REGEXLIB=regex-0.12
|
|
|
|
REGEXFLAGS=-DREGEX_MALLOC -DSTDC_HEADERS $(BYTECCCOMPOPTS)
|
|
|
|
COBJS=strstubs.obj $(REGEXLIB)\regex.obj
|
|
|
|
|
|
|
|
all: libstr.lib str.cmi str.cma
|
|
|
|
|
|
|
|
allopt: libstr.lib str.cmi str.cmxa
|
|
|
|
|
|
|
|
libstr.lib: $(COBJS)
|
|
|
|
$(MKLIB)libstr.lib $(COBJS)
|
|
|
|
|
|
|
|
str.cma: str.cmo
|
2000-03-16 05:35:20 -08:00
|
|
|
$(CAMLC) -a -o str.cma -custom str.cmo -cclib -lstr
|
1996-02-22 04:52:45 -08:00
|
|
|
|
|
|
|
str.cmxa: str.cmx
|
2000-03-16 05:35:20 -08:00
|
|
|
$(CAMLOPT) -a -o str.cmxa str.cmx -cclib -lstr
|
1996-02-22 04:52:45 -08:00
|
|
|
|
|
|
|
$(REGEXLIB)\regex.obj: $(REGEXLIB)\regex.c $(REGEXLIB)\regex.h
|
|
|
|
cd $(REGEXLIB) & $(CC) $(REGEXFLAGS) -c regex.c
|
|
|
|
|
1996-04-30 07:53:58 -07:00
|
|
|
str.cmx: ..\..\ocamlopt
|
1996-02-22 04:52:45 -08:00
|
|
|
|
1997-02-16 05:36:42 -08:00
|
|
|
partialclean:
|
1996-02-22 04:52:45 -08:00
|
|
|
rm -f *.cm*
|
|
|
|
|
1997-02-16 05:36:42 -08:00
|
|
|
clean: partialclean
|
1996-02-22 04:52:45 -08:00
|
|
|
rm -f *.lib *.obj
|
1996-12-03 07:52:32 -08:00
|
|
|
rm -f $(REGEXLIB)/*.obj
|
1996-02-22 04:52:45 -08:00
|
|
|
|
|
|
|
install:
|
|
|
|
cp libstr.lib $(LIBDIR)\libstr.lib
|
|
|
|
cp str.cma str.cmi $(LIBDIR)
|
|
|
|
|
|
|
|
installopt:
|
|
|
|
cp str.cmx str.cmxa str.lib $(LIBDIR)
|
|
|
|
|
|
|
|
.SUFFIXES: .ml .mli .cmo .cmi .cmx
|
|
|
|
|
|
|
|
.mli.cmi:
|
|
|
|
$(CAMLC) -c $(COMPFLAGS) $<
|
|
|
|
|
|
|
|
.ml.cmo:
|
|
|
|
$(CAMLC) -c $(COMPFLAGS) $<
|
|
|
|
|
|
|
|
.ml.cmx:
|
|
|
|
$(CAMLOPT) -c $(COMPFLAGS) $<
|
|
|
|
|
|
|
|
depend:
|
|
|
|
gcc -MM $(CFLAGS) *.c > .depend
|
1996-04-30 07:53:58 -07:00
|
|
|
..\..\tools\ocamldep *.mli *.ml >> .depend
|
1996-02-22 04:52:45 -08:00
|
|
|
|
|
|
|
!include .depend
|