~ubuntu-branches/debian/sid/ocaml/sid

« back to all changes in this revision

Viewing changes to otherlibs/systhreads/Makefile.nt

  • Committer: Bazaar Package Importer
  • Author(s): Stéphane Glondu
  • Date: 2011-04-21 21:35:08 UTC
  • mfrom: (1.1.11 upstream) (12.1.14 sid)
  • Revision ID: james.westby@ubuntu.com-20110421213508-kg34453aqmb0moha
* Fixes related to -output-obj with g++ (in debian/patches):
  - add Declare-primitive-name-table-as-const-char
  - add Avoid-multiple-declarations-in-generated-.c-files-in
  - fix Embed-bytecode-in-C-object-when-using-custom: the closing
    brace for extern "C" { ... } was missing in some cases

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
#                                                                       #
12
12
#########################################################################
13
13
 
14
 
# $Id: Makefile.nt 8477 2007-11-06 15:16:56Z frisch $
 
14
# $Id: Makefile.nt 10315 2010-04-27 07:55:08Z xleroy $
15
15
 
16
16
include ../../config/Makefile
17
17
 
24
24
 
25
25
CAMLOBJS=thread.cmo mutex.cmo condition.cmo event.cmo threadUnix.cmo
26
26
CMIFILES=$(CAMLOBJS:.cmo=.cmi)
27
 
COBJS=win32_b.$(O)
28
 
COBJS_NAT=win32_n.$(O)
29
 
 
30
 
GENFILES=thread.ml
 
27
COBJS=st_stubs_b.$(O)
 
28
COBJS_NAT=st_stubs_n.$(O)
31
29
 
32
30
LIBNAME=threads
33
31
 
41
39
lib$(LIBNAME).$(A): $(COBJS)
42
40
        $(MKLIB) -o $(LIBNAME) $(COBJS) $(LDOPTS)
43
41
 
44
 
win32_b.$(O): win32.c
45
 
        $(BYTECC) $(BYTECCCOMPOPTS) $(CFLAGS) -c win32.c
46
 
        mv win32.$(O) win32_b.$(O)
 
42
st_stubs_b.$(O): st_stubs.c st_win32.h
 
43
        $(BYTECC) $(BYTECCCOMPOPTS) $(CFLAGS) -c st_stubs.c
 
44
        mv st_stubs.$(O) st_stubs_b.$(O)
47
45
 
48
46
 
49
47
 
58
56
lib$(LIBNAME)nat.$(A): $(COBJS_NAT)
59
57
        $(MKLIB) -o $(LIBNAME)nat $(COBJS_NAT) $(LDOPTS)
60
58
 
61
 
win32_n.$(O): win32.c
62
 
        $(NATIVECC) -DNATIVE_CODE -O -I../../asmrun -I../../byterun $(NATIVECCCOMPOPTS) -c win32.c
63
 
        mv win32.$(O) win32_n.$(O)
 
59
st_stubs_n.$(O): st_stubs.c st_win32.h
 
60
        $(NATIVECC) -DNATIVE_CODE -I../../asmrun -I../../byterun $(NATIVECCCOMPOPTS) -c st_stubs.c
 
61
        mv st_stubs.$(O) st_stubs_n.$(O)
64
62
 
65
63
$(CAMLOBJS:.cmo=.cmx): ../../ocamlopt
66
64
 
67
 
thread.ml: thread_win32.ml
68
 
        cp thread_win32.ml thread.ml
69
 
 
70
65
partialclean:
71
66
        rm -f *.cm*
72
67
 
73
68
clean: partialclean
74
69
        rm -f *.dll *.$(A) *.$(O)
75
 
        rm -f $(GENFILES)
76
70
 
77
71
install:
78
72
        cp dllthreads.dll $(STUBLIBDIR)/dllthreads.dll
80
74
        mkdir -p $(LIBDIR)/threads
81
75
        cp $(CMIFILES) threads.cma $(LIBDIR)/threads
82
76
        rm -f $(LIBDIR)/threads/stdlib.cma
 
77
        cp threads.h $(LIBDIR)/caml/threads.h
83
78
 
84
79
installopt:
85
80
        cp libthreadsnat.$(A) $(LIBDIR)/libthreadsnat.$(A)