]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/tools/build/src/engine/boehm_gc/EMX_MAKEFILE
Add patch for failing prerm scripts
[ceph.git] / ceph / src / boost / tools / build / src / engine / boehm_gc / EMX_MAKEFILE
CommitLineData
7c673cae
FG
1#
2# OS/2 specific Makefile for the EMX environment
3#
4# You need GNU Make 3.71, gcc 2.5.7, emx 0.8h and GNU fileutils 3.9
5# or similar tools. C++ interface and de.exe weren't tested.
6#
7# Rename this file "Makefile".
8#
9
10# Primary targets:
11# gc.a - builds basic library
12# c++ - adds C++ interface to library and include directory
13# cords - adds cords (heavyweight strings) to library and include directory
14# test - prints porting information, then builds basic version of gc.a, and runs
15# some tests of collector and cords. Does not add cords or c++ interface to gc.a
16# cord/de.exe - builds dumb editor based on cords.
17CC= gcc
18CXX=g++
19# Needed only for "make c++", which adds the c++ interface
20
21CFLAGS= -O -DALL_INTERIOR_POINTERS
22# Setjmp_test may yield overly optimistic results when compiled
23# without optimization.
24# -DCHECKSUMS reports on erroneously clear dirty bits, and unexpectedly
25# altered stubborn objects, at substantial performance cost.
26# -DFIND_LEAK causes the collector to assume that all inaccessible
27# objects should have been explicitly deallocated, and reports exceptions
28# -DSOLARIS_THREADS enables support for Solaris (thr_) threads.
29# (Clients should also define SOLARIS_THREADS and then include
30# gc.h before performing thr_ or GC_ operations.)
31# -DALL_INTERIOR_POINTERS allows all pointers to the interior
32# of objects to be recognized. (See gc_private.h for consequences.)
33# -DSMALL_CONFIG tries to tune the collector for small heap sizes,
34# usually causing it to use less space in such situations.
35# Incremental collection no longer works in this case.
36# -DDONT_ADD_BYTE_AT_END is meaningful only with
37# -DALL_INTERIOR_POINTERS. Normally -DALL_INTERIOR_POINTERS
38# causes all objects to be padded so that pointers just past the end of
39# an object can be recognized. This can be expensive. (The padding
40# is normally more than one byte due to alignment constraints.)
41# -DDONT_ADD_BYTE_AT_END disables the padding.
42
43AR= ar
44RANLIB= ar s
45
46# Redefining srcdir allows object code for the nonPCR version of the collector
47# to be generated in different directories
48srcdir = .
49VPATH = $(srcdir)
50
51OBJS= alloc.o reclaim.o allchblk.o misc.o mach_dep.o os_dep.o mark_rts.o headers.o mark.o obj_map.o blacklst.o finalize.o new_hblk.o dyn_load.o dbg_mlc.o malloc.o stubborn.o checksums.o typd_mlc.o ptr_chck.o mallocx.o
52
53CORD_OBJS= cord/cordbscs.o cord/cordxtra.o cord/cordprnt.o
54
55CORD_INCLUDE_FILES= $(srcdir)/gc.h $(srcdir)/cord/cord.h $(srcdir)/cord/ec.h \
56 $(srcdir)/cord/cord_pos.h
57
58# Libraries needed for curses applications. Only needed for de.
59CURSES= -lcurses -ltermlib
60
61# The following is irrelevant on most systems. But a few
62# versions of make otherwise fork the shell specified in
63# the SHELL environment variable.
64SHELL= bash
65
66SPECIALCFLAGS =
67# Alternative flags to the C compiler for mach_dep.c.
68# Mach_dep.c often doesn't like optimization, and it's
69# not time-critical anyway.
70
71all: gc.a gctest.exe
72
73$(OBJS) test.o: $(srcdir)/gc_priv.h $(srcdir)/gc_hdrs.h $(srcdir)/gc.h \
74 $(srcdir)/gcconfig.h $(srcdir)/gc_typed.h
75# The dependency on Makefile is needed. Changing
76# options affects the size of GC_arrays,
77# invalidating all .o files that rely on gc_priv.h
78
79mark.o typd_mlc.o finalize.o: $(srcdir)/include/gc_mark.h $(srcdir)/include/private/gc_pmark.h
80
81gc.a: $(OBJS)
82 $(AR) ru gc.a $(OBJS)
83 $(RANLIB) gc.a
84
85cords: $(CORD_OBJS) cord/cordtest.exe
86 $(AR) ru gc.a $(CORD_OBJS)
87 $(RANLIB) gc.a
88 cp $(srcdir)/cord/cord.h include/cord.h
89 cp $(srcdir)/cord/ec.h include/ec.h
90 cp $(srcdir)/cord/cord_pos.h include/cord_pos.h
91
92gc_cpp.o: $(srcdir)/gc_cpp.cc $(srcdir)/gc_cpp.h
93 $(CXX) -c -O $(srcdir)/gc_cpp.cc
94
95c++: gc_cpp.o $(srcdir)/gc_cpp.h
96 $(AR) ru gc.a gc_cpp.o
97 $(RANLIB) gc.a
98 cp $(srcdir)/gc_cpp.h include/gc_cpp.h
99
100mach_dep.o: $(srcdir)/mach_dep.c
101 $(CC) -o mach_dep.o -c $(SPECIALCFLAGS) $(srcdir)/mach_dep.c
102
103mark_rts.o: $(srcdir)/mark_rts.c
104 $(CC) -o mark_rts.o -c $(CFLAGS) $(srcdir)/mark_rts.c
105
106cord/cordbscs.o: $(srcdir)/cord/cordbscs.c $(CORD_INCLUDE_FILES)
107 $(CC) $(CFLAGS) -c $(srcdir)/cord/cordbscs.c -o cord/cordbscs.o
108
109cord/cordxtra.o: $(srcdir)/cord/cordxtra.c $(CORD_INCLUDE_FILES)
110 $(CC) $(CFLAGS) -c $(srcdir)/cord/cordxtra.c -o cord/cordxtra.o
111
112cord/cordprnt.o: $(srcdir)/cord/cordprnt.c $(CORD_INCLUDE_FILES)
113 $(CC) $(CFLAGS) -c $(srcdir)/cord/cordprnt.c -o cord/cordprnt.o
114
115cord/cordtest.exe: $(srcdir)/cord/cordtest.c $(CORD_OBJS) gc.a
116 $(CC) $(CFLAGS) -o cord/cordtest.exe $(srcdir)/cord/cordtest.c $(CORD_OBJS) gc.a
117
118cord/de.exe: $(srcdir)/cord/de.c $(srcdir)/cord/cordbscs.o $(srcdir)/cord/cordxtra.o gc.a
119 $(CC) $(CFLAGS) -o cord/de.exe $(srcdir)/cord/de.c $(srcdir)/cord/cordbscs.o $(srcdir)/cord/cordxtra.o gc.a $(CURSES)
120
121clean:
122 rm -f gc.a tests/test.o gctest.exe output-local output-diff $(OBJS) \
123 setjmp_test mon.out gmon.out a.out core \
124 $(CORD_OBJS) cord/cordtest.exe cord/de.exe
125 -rm -f *~
126
127gctest.exe: tests/test.o gc.a
128 $(CC) $(CFLAGS) -o gctest.exe tests/test.o gc.a
129
130# If an optimized setjmp_test generates a segmentation fault,
131# odds are your compiler is broken. Gctest may still work.
132# Try compiling setjmp_t.c unoptimized.
133setjmp_test.exe: $(srcdir)/setjmp_t.c $(srcdir)/gc.h
134 $(CC) $(CFLAGS) -o setjmp_test.exe $(srcdir)/setjmp_t.c
135
136test: setjmp_test.exe gctest.exe
137 ./setjmp_test
138 ./gctest
139 make cord/cordtest.exe
140 cord/cordtest