]> git.ipfire.org Git - thirdparty/gcc.git/blame - boehm-gc/OS2_MAKEFILE
configure.ac (cygwin noconfigdirs): Remove libgcj.
[thirdparty/gcc.git] / boehm-gc / OS2_MAKEFILE
CommitLineData
73ffefd0
TT
1# Makefile for OS/2. Assumes IBM's compiler, static linking, and a single thread.
2# Adding dynamic linking support seems easy, but takes a little bit of work.
3# Adding thread support may be nontrivial, since we haven't yet figured out how to
4# look at another thread's registers.
5
6# Significantly revised for GC version 4.4 by Mark Boulter (Jan 1994).
7
8OBJS= alloc.obj reclaim.obj allchblk.obj misc.obj mach_dep.obj os_dep.obj mark_rts.obj headers.obj mark.obj obj_map.obj blacklst.obj finalize.obj new_hblk.obj dbg_mlc.obj malloc.obj stubborn.obj typd_mlc.obj ptr_chck.obj mallocx.obj
9
10CORDOBJS= cord\cordbscs.obj cord\cordxtra.obj cord\cordprnt.obj
11
12CC= icc
13CFLAGS= /O /Q /DSILENT /DSMALL_CONFIG /DALL_INTERIOR_POINTERS
14# Use /Ti instead of /O for debugging
15# Setjmp_test may yield overly optimistic results when compiled
16# without optimization.
17
18all: $(OBJS) gctest.exe cord\cordtest.exe
19
9110a741 20$(OBJS) test.obj: include\private\gc_priv.h include\private\gc_hdrs.h include\gc.h include\private\gcconfig.h
73ffefd0
TT
21
22## ERASE THE LIB FIRST - if it is already there then this command will fail
23## (make sure its there or erase will fail!)
24gc.lib: $(OBJS)
25 echo . > gc.lib
26 erase gc.lib
27 LIB gc.lib $(OBJS), gc.lst
28
29mach_dep.obj: mach_dep.c
30 $(CC) $(CFLAGS) /C mach_dep.c
31
32gctest.exe: test.obj gc.lib
33 $(CC) $(CFLAGS) /B"/STACK:524288" /Fegctest test.obj gc.lib
34
9110a741 35cord\cordbscs.obj: cord\cordbscs.c include\cord.h include\private\cord_pos.h
73ffefd0
TT
36 $(CC) $(CFLAGS) /C /Focord\cordbscs cord\cordbscs.c
37
9110a741 38cord\cordxtra.obj: cord\cordxtra.c include\cord.h include\private\cord_pos.h include\ec.h
73ffefd0
TT
39 $(CC) $(CFLAGS) /C /Focord\cordxtra cord\cordxtra.c
40
9110a741 41cord\cordprnt.obj: cord\cordprnt.c include\cord.h include\private\cord_pos.h include\ec.h
73ffefd0
TT
42 $(CC) $(CFLAGS) /C /Focord\cordprnt cord\cordprnt.c
43
9110a741 44cord\cordtest.exe: cord\cordtest.c include\cord.h include\private\cord_pos.h include\ec.h $(CORDOBJS) gc.lib
73ffefd0 45 $(CC) $(CFLAGS) /B"/STACK:65536" /Fecord\cordtest cord\cordtest.c gc.lib $(CORDOBJS)