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 #
|
2001-12-07 05:41:02 -08:00
|
|
|
# under the terms of the GNU Library General Public License, with #
|
|
|
|
# the special exception on linking described in file ../LICENSE. #
|
1999-11-17 10:59:06 -08:00
|
|
|
# #
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
# $Id$
|
|
|
|
|
2007-11-06 07:16:56 -08:00
|
|
|
include Makefile.common
|
1995-05-04 03:15:53 -07:00
|
|
|
|
2007-11-15 05:21:15 -08:00
|
|
|
CFLAGS=-DCAML_NAME_SPACE -O $(BYTECCCOMPOPTS) $(IFLEXDIR)
|
2003-12-15 08:28:22 -08:00
|
|
|
DFLAGS=-DCAML_NAME_SPACE -g -DDEBUG $(BYTECCCOMPOPTS)
|
1995-05-04 03:15:53 -07:00
|
|
|
|
2007-11-13 09:18:25 -08:00
|
|
|
OBJS=$(COMMONOBJS) unix.o main.o
|
1995-05-04 03:15:53 -07:00
|
|
|
DOBJS=$(OBJS:.o=.d.o) instrtrace.d.o
|
|
|
|
|
2000-08-10 02:58:08 -07:00
|
|
|
ocamlrun$(EXE): libcamlrun.a prims.o
|
2007-11-15 05:21:15 -08:00
|
|
|
$(MKEXE) $(BYTECCLINKOPTS) -o ocamlrun$(EXE) \
|
2007-11-08 00:54:30 -08:00
|
|
|
prims.o libcamlrun.a $(BYTECCLIBS)
|
1995-05-04 03:15:53 -07:00
|
|
|
|
2000-08-10 02:58:08 -07:00
|
|
|
ocamlrund$(EXE): libcamlrund.a prims.o
|
2007-11-15 05:21:15 -08:00
|
|
|
$(MKEXE) -g $(BYTECCLINKOPTS) -o ocamlrund$(EXE) \
|
2000-10-27 08:18:24 -07:00
|
|
|
prims.o libcamlrund.a $(BYTECCLIBS)
|
1995-05-04 03:15:53 -07:00
|
|
|
|
2007-11-08 00:54:30 -08:00
|
|
|
libcamlrun.a: $(OBJS)
|
|
|
|
ar rc libcamlrun.a $(OBJS)
|
|
|
|
$(RANLIB) libcamlrun.a
|
1997-01-05 06:06:13 -08:00
|
|
|
|
1996-07-23 01:12:11 -07:00
|
|
|
libcamlrund.a: $(DOBJS)
|
|
|
|
ar rc libcamlrund.a $(DOBJS)
|
1997-01-05 06:06:13 -08:00
|
|
|
$(RANLIB) libcamlrund.a
|
1996-07-23 01:12:11 -07:00
|
|
|
|
1995-05-04 03:15:53 -07:00
|
|
|
.SUFFIXES: .d.o
|
|
|
|
|
|
|
|
.c.d.o:
|
1995-07-18 01:41:30 -07:00
|
|
|
@ if test -f $*.o; then mv $*.o $*.f.o; else :; fi
|
|
|
|
$(CC) -c $(DFLAGS) $<
|
|
|
|
mv $*.o $*.d.o
|
|
|
|
@ if test -f $*.f.o; then mv $*.f.o $*.o; else :; fi
|
1995-05-04 03:15:53 -07:00
|
|
|
|
2004-11-26 17:04:19 -08:00
|
|
|
depend : prims.c opnames.h jumptbl.h version.h
|
2006-09-20 04:14:37 -07:00
|
|
|
-gcc -MM $(BYTECCCOMPOPTS) *.c > .depend
|
|
|
|
-gcc -MM $(BYTECCCOMPOPTS) -DDEBUG *.c | sed -e 's/\.o/.d.o/' >> .depend
|
2007-11-22 11:01:50 -08:00
|
|
|
.PHONY: depend
|
1995-05-04 03:15:53 -07:00
|
|
|
|
|
|
|
include .depend
|