Fix a typo in 'primitives' word in ChangeLog
[platform/upstream/libgc.git] / OS2_MAKEFILE
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 by Mark Boulter (Jan 1994).
7
8 OBJS= 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 fnlz_mlc.obj malloc.obj typd_mlc.obj ptr_chck.obj mallocx.obj gcj_mlc.obj
9
10 CORDOBJS= cord\cordbscs.obj cord\cordxtra.obj cord\cordprnt.obj
11
12 CC= icc
13 CFLAGS= /O /Q /DALL_INTERIOR_POINTERS /DENABLE_DISCLAIM /DGC_ATOMIC_UNCOLLECTABLE /DGC_GCJ_SUPPORT /DJAVA_FINALIZATION /DNO_EXECUTE_PERMISSION /DSMALL_CONFIG
14 # Use /Ti instead of /O for debugging
15 # Setjmp_test may yield overly optimistic results when compiled
16 # without optimization.
17
18 all: gc.lib cord.lib
19
20 check: gctest.exe cordtest.exe
21         gctest.exe
22         cordtest.exe
23
24 $(OBJS) test.obj: include\private\gc_priv.h include\private\gc_hdrs.h include\gc.h include\private\gcconfig.h
25
26 ## ERASE THE LIB FIRST - if it is already there then this command will fail
27 ## (make sure it is there or erase will fail!)
28 gc.lib: $(OBJS)
29         echo . > gc.lib
30         erase gc.lib
31         LIB gc.lib $(OBJS), gc.lst
32
33 mach_dep.obj: mach_dep.c
34         $(CC) $(CFLAGS) /C mach_dep.c
35
36 gctest.exe: test.obj gc.lib
37         $(CC) $(CFLAGS) /B"/STACK:524288" /Fegctest test.obj gc.lib
38
39 cord\cordbscs.obj: cord\cordbscs.c include\cord.h include\cord_pos.h
40         $(CC) $(CFLAGS) /C /Focord\cordbscs cord\cordbscs.c
41
42 cord\cordxtra.obj: cord\cordxtra.c include\cord.h include\cord_pos.h include\ec.h
43         $(CC) $(CFLAGS) /C /Focord\cordxtra cord\cordxtra.c
44
45 cord\cordprnt.obj: cord\cordprnt.c include\cord.h include\cord_pos.h include\ec.h
46         $(CC) $(CFLAGS) /C /Focord\cordprnt cord\cordprnt.c
47
48 cord.lib: $(CORDOBJS)
49         echo . > cord.lib
50         erase cord.lib
51         LIB cord.lib $(CORDOBJS), cord.lst
52
53 cordtest.exe: cord\tests\cordtest.c include\cord.h include\cord_pos.h include\ec.h gc.lib cord.lib
54         $(CC) $(CFLAGS) /B"/STACK:65536" /Fecordtest cord\tests\cordtest.c gc.lib cord.lib
55
56 clean:
57         erase gc.lib cord.lib
58         erase gctest.exe cordtest.exe
59         erase $(OBJS) $(CORDOBJS)