~ubuntu-branches/ubuntu/quantal/libgc/quantal

« back to all changes in this revision

Viewing changes to Makefile.dj

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Egger
  • Date: 2011-02-19 12:19:56 UTC
  • mfrom: (1.3.2 upstream) (0.1.5 experimental)
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: james.westby@ubuntu.com-20110219121956-67rb69xlt5nud3v2
Tags: 1:7.1-5
Upload to unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
srcdir= .
30
30
VPATH= $(srcdir)
31
31
 
32
 
CFLAGS= -gstabs+ -O2 -I$(srcdir)/include -DATOMIC_UNCOLLECTABLE -DNO_SIGNALS -DALL_INTERIOR_POINTERS -DNO_EXECUTE_PERMISSION -DSILENT
 
32
CFLAGS= -gstabs+ -O2 -I$(srcdir)/include -DATOMIC_UNCOLLECTABLE -DALL_INTERIOR_POINTERS -DNO_EXECUTE_PERMISSION
33
33
 
34
34
# Setjmp_test may yield overly optimistic results when compiled
35
35
# without optimization.
36
 
# -DSILENT disables statistics printing, and improves performance.
37
36
# -DFIND_LEAK causes GC_find_leak to be initially set.
38
37
#   This causes the collector to assume that all inaccessible
39
38
#   objects should have been explicitly deallocated, and reports exceptions.
166
165
CORD_OBJS=  cord/cordbscs.o cord/cordxtra.o cord/cordprnt.o
167
166
 
168
167
SRCS= $(CSRCS) mips_sgi_mach_dep.S rs6000_mach_dep.s alpha_mach_dep.S \
169
 
    sparc_mach_dep.S include/gc.h include/gc_typed.h \
 
168
    sparc_mach_dep.S include/gc.h include/gc_version.h include/gc_typed.h \
170
169
    include/private/gc_hdrs.h include/private/gc_priv.h \
171
170
    include/private/gcconfig.h include/private/gc_mark.h \
172
 
    include/gc_inl.h include/gc_inline.h gc.man \
 
171
    include/gc_inline.h gc.man \
173
172
    threadlibs.c if_mach.c if_not_there.c gc_cpp.cc include/gc_cpp.h \
174
173
    include/weakpointer.h include/private/gc_locks.h \
175
174
    gcc_support.c mips_ultrix_mach_dep.s include/gc_alloc.h \
177
176
    include/private/solaris_threads.h include/gc_backptr.h \
178
177
    hpux_test_and_clear.s include/gc_gcj.h \
179
178
    include/gc_local_alloc.h include/private/dbg_mlc.h \
180
 
    include/private/specific.h powerpc_darwin_mach_dep.s \
 
179
    include/private/specific.h \
181
180
    include/leak_detector.h $(CORD_SRCS)
182
181
 
183
182
OTHER_FILES= Makefile PCR-Makefile OS2_MAKEFILE NT_MAKEFILE BCC_MAKEFILE \
190
189
           Mac_files/MacOS_config.h Mac_files/MacOS_Test_config.h \
191
190
           add_gc_prefix.c README.solaris2 README.sgi README.hp README.uts \
192
191
           win32_threads.c NT_THREADS_MAKEFILE gc.mak README.dj Makefile.dj \
193
 
           README.alpha README.linux README.MacOSX version.h Makefile.DLLs \
 
192
           README.alpha README.linux README.MacOSX Makefile.DLLs \
194
193
           WCC_MAKEFILE nursery.c include/gc_nursery.h include/gc_copy_descr.h
195
194
 
196
195
CORD_INCLUDE_FILES= $(srcdir)/include/gc.h $(srcdir)/include/cord.h \
221
220
    $(srcdir)/include/private/gcconfig.h $(srcdir)/include/gc_typed.h \
222
221
    Makefile
223
222
# The dependency on Makefile is needed.  Changing
224
 
# options such as -DSILENT affects the size of GC_arrays,
 
223
# options affects the size of GC_arrays,
225
224
# invalidating all .o files that rely on gc_priv.h
226
225
 
227
226
mark.o typd_mlc.o finalize.o: $(srcdir)/include/gc_mark.h
229
228
base_lib gc.a: $(OBJS) dyn_load.o $(UTILS)
230
229
        echo > base_lib
231
230
        rm -f on_sparc_sunos5_1
232
 
        ./if_mach SPARC SUNOS5 touch on_sparc_sunos5_1
233
 
        ./if_mach SPARC SUNOS5 $(AR) rus gc.a $(OBJS) dyn_load.o
 
231
        ./if_mach SPARC SOLARIS touch on_sparc_sunos5_1
 
232
        ./if_mach SPARC SOLARIS $(AR) rus gc.a $(OBJS) dyn_load.o
234
233
        ./if_not_there on_sparc_sunos5_1 $(AR) ru gc.a $(OBJS) dyn_load.o
235
234
        -./if_not_there on_sparc_sunos5_1 $(RANLIB) gc.a
236
235
#       ignore ranlib failure; that usually means it doesn't exist, and isn't needed
237
236
 
238
237
cords: $(CORD_OBJS) cord/cordtest$(EXE_SUFFIX) $(UTILS)
239
238
        rm -f on_sparc_sunos5_3
240
 
        ./if_mach SPARC SUNOS5 touch on_sparc_sunos5_3
241
 
        ./if_mach SPARC SUNOS5 $(AR) rus gc.a $(CORD_OBJS)
 
239
        ./if_mach SPARC SOLARIS touch on_sparc_sunos5_3
 
240
        ./if_mach SPARC SOLARIS $(AR) rus gc.a $(CORD_OBJS)
242
241
        ./if_not_there on_sparc_sunos5_3 $(AR) ru gc.a $(CORD_OBJS)
243
242
        -./if_not_there on_sparc_sunos5_3 $(RANLIB) gc.a
244
243
 
254
253
 
255
254
c++: gc_cpp.o $(srcdir)/include/gc_cpp.h test_cpp$(EXE_SUFFIX)
256
255
        rm -f on_sparc_sunos5_4
257
 
        ./if_mach SPARC SUNOS5 touch on_sparc_sunos5_4
258
 
        ./if_mach SPARC SUNOS5 $(AR) rus gc.a gc_cpp.o
 
256
        ./if_mach SPARC SOLARIS touch on_sparc_sunos5_4
 
257
        ./if_mach SPARC SOLARIS $(AR) rus gc.a gc_cpp.o
259
258
        ./if_not_there on_sparc_sunos5_4 $(AR) ru gc.a gc_cpp.o
260
259
        -./if_not_there on_sparc_sunos5_4 $(RANLIB) gc.a
261
260
        ./test_cpp$(EXE_SUFFIX) 1
285
284
        ln liblinuxgc.so libgc.so
286
285
 
287
286
mach_dep.o: $(srcdir)/mach_dep.c $(srcdir)/mips_sgi_mach_dep.S $(srcdir)/mips_ultrix_mach_dep.s \
288
 
            $(srcdir)/rs6000_mach_dep.s $(srcdir)/powerpc_darwin_mach_dep.s $(UTILS)
 
287
            $(srcdir)/rs6000_mach_dep.s $(UTILS)
289
288
        rm -f mach_dep.o
290
289
        ./if_mach MIPS IRIX5 $(AS) -o mach_dep.o $(srcdir)/mips_sgi_mach_dep.S
291
290
        ./if_mach MIPS RISCOS $(AS) -o mach_dep.o $(srcdir)/mips_ultrix_mach_dep.s
292
291
        ./if_mach MIPS ULTRIX $(AS) -o mach_dep.o $(srcdir)/mips_ultrix_mach_dep.s
293
 
        ./if_mach RS6000 "" $(AS) -o mach_dep.o $(srcdir)/rs6000_mach_dep.s
294
 
        ./if_mach POWERPC MACOSX $(AS) -o mach_dep.o $(srcdir)/powerpc_darwin_mach_dep.s
 
292
        ./if_mach POWERPC AIX $(AS) -o mach_dep.o $(srcdir)/rs6000_mach_dep.s
295
293
        ./if_mach ALPHA "" $(AS) -o mach_dep.o $(srcdir)/alpha_mach_dep.S
296
 
        ./if_mach SPARC SUNOS5 $(AS) -o mach_dep.o $(srcdir)/sparc_mach_dep.S
 
294
        ./if_mach SPARC SOLARIS $(AS) -o mach_dep.o $(srcdir)/sparc_mach_dep.S
297
295
        ./if_mach SPARC SUNOS4 $(AS) -o mach_dep.o $(srcdir)/sparc_sunos4_mach_dep.s
298
296
        ./if_not_there mach_dep.o $(CC) -c $(SPECIALCFLAGS) $(srcdir)/mach_dep.c
299
297
 
304
302
#       Work-around for DEC optimizer tail recursion elimination bug.
305
303
#  The ALPHA-specific line should be removed if gcc is used.
306
304
 
307
 
alloc.o: version.h
 
305
alloc.o: include/gc_version.h
308
306
 
309
307
cord/cordbscs.o: $(srcdir)/cord/cordbscs.c $(CORD_INCLUDE_FILES)
310
308
        $(CC) $(CFLAGS) -c -I$(srcdir) $(srcdir)/cord/cordbscs.c