UNPKG

ocaml

Version:

OCaml Compiler as an esy npm Package

37 lines (31 loc) 1.52 kB
#************************************************************************** #* * #* OCaml * #* * #* 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 Lesser General Public License version 2.1, with the * #* special exception on linking described in the file LICENSE. * #* * #************************************************************************** # Makefile for the str library LIBNAME=str COBJS=strstubs.$(O) CLIBNAME=camlstr CAMLOBJS=str.cmo include ../Makefile.otherlibs.common str.cmo: str.cmi str.cmx: str.cmi .PHONY: depend depend: ifeq "$(TOOLCHAIN)" "msvc" $(error Dependencies cannot be regenerated using the MSVC ports) else $(CC) -MM $(OC_CPPFLAGS) *.c | sed -e 's/\.o/.$$(O)/g' > .depend $(CAMLRUN) $(ROOTDIR)/boot/ocamlc -depend -slash *.mli *.ml >> .depend endif include .depend