[BACK]Return to EMX_MAKEFILE CVS log [TXT][DIR] Up to [local] / OpenXM_contrib / gc

Annotation of OpenXM_contrib/gc/EMX_MAKEFILE, Revision 1.1

1.1     ! maekawa     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.
        !            17: CC= gcc
        !            18: CXX=g++
        !            19: # Needed only for "make c++", which adds the c++ interface
        !            20:
        !            21: CFLAGS= -O -DALL_INTERIOR_POINTERS -DSILENT
        !            22: # Setjmp_test may yield overly optimistic results when compiled
        !            23: # without optimization.
        !            24: # -DSILENT disables statistics printing, and improves performance.
        !            25: # -DCHECKSUMS reports on erroneously clear dirty bits, and unexpectedly
        !            26: #   altered stubborn objects, at substantial performance cost.
        !            27: # -DFIND_LEAK causes the collector to assume that all inaccessible
        !            28: #   objects should have been explicitly deallocated, and reports exceptions
        !            29: # -DSOLARIS_THREADS enables support for Solaris (thr_) threads.
        !            30: #   (Clients should also define SOLARIS_THREADS and then include
        !            31: #   gc.h before performing thr_ or GC_ operations.)
        !            32: # -DALL_INTERIOR_POINTERS allows all pointers to the interior
        !            33: #   of objects to be recognized.  (See gc_private.h for consequences.)
        !            34: # -DSMALL_CONFIG tries to tune the collector for small heap sizes,
        !            35: #   usually causing it to use less space in such situations.
        !            36: #   Incremental collection no longer works in this case.
        !            37: # -DDONT_ADD_BYTE_AT_END is meaningful only with
        !            38: #   -DALL_INTERIOR_POINTERS.  Normally -DALL_INTERIOR_POINTERS
        !            39: #   causes all objects to be padded so that pointers just past the end of
        !            40: #   an object can be recognized.  This can be expensive.  (The padding
        !            41: #   is normally more than one byte due to alignment constraints.)
        !            42: #   -DDONT_ADD_BYTE_AT_END disables the padding.
        !            43:
        !            44: AR= ar
        !            45: RANLIB= ar s
        !            46:
        !            47: # Redefining srcdir allows object code for the nonPCR version of the collector
        !            48: # to be generated in different directories
        !            49: srcdir = .
        !            50: VPATH = $(srcdir)
        !            51:
        !            52: OBJS= 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
        !            53:
        !            54: CORD_OBJS=  cord/cordbscs.o cord/cordxtra.o cord/cordprnt.o
        !            55:
        !            56: CORD_INCLUDE_FILES= $(srcdir)/gc.h $(srcdir)/cord/cord.h $(srcdir)/cord/ec.h \
        !            57:            $(srcdir)/cord/cord_pos.h
        !            58:
        !            59: # Libraries needed for curses applications.  Only needed for de.
        !            60: CURSES= -lcurses -ltermlib
        !            61:
        !            62: # The following is irrelevant on most systems.  But a few
        !            63: # versions of make otherwise fork the shell specified in
        !            64: # the SHELL environment variable.
        !            65: SHELL= bash
        !            66:
        !            67: SPECIALCFLAGS =
        !            68: # Alternative flags to the C compiler for mach_dep.c.
        !            69: # Mach_dep.c often doesn't like optimization, and it's
        !            70: # not time-critical anyway.
        !            71:
        !            72: all: gc.a gctest.exe
        !            73:
        !            74: $(OBJS) test.o: $(srcdir)/gc_priv.h $(srcdir)/gc_hdrs.h $(srcdir)/gc.h \
        !            75:     $(srcdir)/gcconfig.h $(srcdir)/gc_typed.h
        !            76: # The dependency on Makefile is needed.  Changing
        !            77: # options such as -DSILENT affects the size of GC_arrays,
        !            78: # invalidating all .o files that rely on gc_priv.h
        !            79:
        !            80: mark.o typd_mlc.o finalize.o: $(srcdir)/gc_mark.h
        !            81:
        !            82: gc.a: $(OBJS)
        !            83:        $(AR) ru gc.a $(OBJS)
        !            84:        $(RANLIB) gc.a
        !            85:
        !            86: cords: $(CORD_OBJS) cord/cordtest.exe
        !            87:        $(AR) ru gc.a $(CORD_OBJS)
        !            88:        $(RANLIB) gc.a
        !            89:        cp $(srcdir)/cord/cord.h include/cord.h
        !            90:        cp $(srcdir)/cord/ec.h include/ec.h
        !            91:        cp $(srcdir)/cord/cord_pos.h include/cord_pos.h
        !            92:
        !            93: gc_cpp.o: $(srcdir)/gc_cpp.cc $(srcdir)/gc_cpp.h
        !            94:        $(CXX) -c -O $(srcdir)/gc_cpp.cc
        !            95:
        !            96: c++: gc_cpp.o $(srcdir)/gc_cpp.h
        !            97:        $(AR) ru gc.a gc_cpp.o
        !            98:        $(RANLIB) gc.a
        !            99:        cp $(srcdir)/gc_cpp.h include/gc_cpp.h
        !           100:
        !           101: mach_dep.o: $(srcdir)/mach_dep.c
        !           102:        $(CC) -o mach_dep.o -c $(SPECIALCFLAGS) $(srcdir)/mach_dep.c
        !           103:
        !           104: mark_rts.o: $(srcdir)/mark_rts.c
        !           105:        $(CC) -o mark_rts.o -c $(CFLAGS) $(srcdir)/mark_rts.c
        !           106:
        !           107: cord/cordbscs.o: $(srcdir)/cord/cordbscs.c $(CORD_INCLUDE_FILES)
        !           108:        $(CC) $(CFLAGS) -c $(srcdir)/cord/cordbscs.c -o  cord/cordbscs.o
        !           109:
        !           110: cord/cordxtra.o: $(srcdir)/cord/cordxtra.c $(CORD_INCLUDE_FILES)
        !           111:        $(CC) $(CFLAGS) -c $(srcdir)/cord/cordxtra.c -o  cord/cordxtra.o
        !           112:
        !           113: cord/cordprnt.o: $(srcdir)/cord/cordprnt.c $(CORD_INCLUDE_FILES)
        !           114:        $(CC) $(CFLAGS) -c $(srcdir)/cord/cordprnt.c -o cord/cordprnt.o
        !           115:
        !           116: cord/cordtest.exe: $(srcdir)/cord/cordtest.c $(CORD_OBJS) gc.a
        !           117:        $(CC) $(CFLAGS) -o cord/cordtest.exe $(srcdir)/cord/cordtest.c $(CORD_OBJS) gc.a
        !           118:
        !           119: cord/de.exe: $(srcdir)/cord/de.c $(srcdir)/cord/cordbscs.o $(srcdir)/cord/cordxtra.o gc.a
        !           120:        $(CC) $(CFLAGS) -o cord/de.exe $(srcdir)/cord/de.c $(srcdir)/cord/cordbscs.o $(srcdir)/cord/cordxtra.o gc.a $(CURSES)
        !           121:
        !           122: clean:
        !           123:        rm -f gc.a test.o gctest.exe output-local output-diff $(OBJS) \
        !           124:              setjmp_test  mon.out gmon.out a.out core \
        !           125:              $(CORD_OBJS) cord/cordtest.exe cord/de.exe
        !           126:        -rm -f *~
        !           127:
        !           128: gctest.exe: test.o gc.a
        !           129:        $(CC) $(CFLAGS) -o gctest.exe test.o gc.a
        !           130:
        !           131: # If an optimized setjmp_test generates a segmentation fault,
        !           132: # odds are your compiler is broken.  Gctest may still work.
        !           133: # Try compiling setjmp_t.c unoptimized.
        !           134: setjmp_test.exe: $(srcdir)/setjmp_t.c $(srcdir)/gc.h
        !           135:        $(CC) $(CFLAGS) -o setjmp_test.exe $(srcdir)/setjmp_t.c
        !           136:
        !           137: test: setjmp_test.exe gctest.exe
        !           138:        ./setjmp_test
        !           139:        ./gctest
        !           140:        make cord/cordtest.exe
        !           141:        cord/cordtest

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>