Skip to content

Commit

Permalink
Build cord.lib static library by digimars.mak
Browse files Browse the repository at this point in the history
* digimars.mak (all): Add `cord.lib` to dependencies.
* digimars.mak (cord.lib): New goal; add FIXME item.
* digimars.mak (clean): Delete `cord.lib`, `cordtest.exe` files.
* digimars.mak (cordtest.exe): Replace `cord\cordbscs.obj`,
`cord\cordprnt.obj`, `cord\cordxtra.obj` to `cord.lib`.
  • Loading branch information
ivmai committed Dec 8, 2024
1 parent 0ff7ed8 commit 32b23b4
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions digimars.mak
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ LFLAGS=/ma/implib/co
CC=sc

# Must precede other goals.
all: gc.lib
all: cord.lib gc.lib

gc.obj: extra\gc.c
$(CC) -c $(CFLAGS) extra\gc.c -ogc.obj
Expand All @@ -41,6 +41,10 @@ gc.def: digimars.mak
echo GC_is_visible_print_proc >>gc.def
echo GC_is_valid_displacement_print_proc >>gc.def

# FIXME: building cord as DLL results in cordtest fail.
cord.lib: cord\cordbscs.obj cord\cordprnt.obj cord\cordxtra.obj
lib -c cord.lib cord\cordbscs.obj cord\cordprnt.obj cord\cordxtra.obj

cord\cordbscs.obj: cord\cordbscs.c
$(CC) -c $(CORD_CFLAGS) cord\cordbscs.c -ocord\cordbscs.obj

Expand All @@ -53,7 +57,7 @@ cord\cordxtra.obj: cord\cordxtra.c
clean:
del *.log *.map *.obj gc.def gc.dll gc.lib
del tests\*.obj gctest.exe cpptest.exe treetest.exe
del cord\*.obj cord\tests\cordtest.obj cordtest.exe
del cord\*.obj cord.lib cord\tests\cordtest.obj cordtest.exe

gctest.exe: gc.lib tests\gctest.obj
$(CC) -ogctest.exe tests\gctest.obj gc.lib
Expand All @@ -73,8 +77,8 @@ treetest.exe: gc.lib tests\treetest.obj
tests\treetest.obj: tests\tree.cc
$(CC) -c $(CFLAGS) -cpp tests\tree.cc -otests\treetest.obj

cordtest.exe: cord\tests\cordtest.obj cord\cordbscs.obj cord\cordprnt.obj cord\cordxtra.obj gc.lib
$(CC) -ocordtest.exe cord\tests\cordtest.obj cord\cordbscs.obj cord\cordprnt.obj cord\cordxtra.obj gc.lib
cordtest.exe: cord\tests\cordtest.obj cord.lib gc.lib
$(CC) -ocordtest.exe cord\tests\cordtest.obj cord.lib gc.lib

cord\tests\cordtest.obj: cord\tests\cordtest.c
$(CC) -c $(CORD_CFLAGS) cord\tests\cordtest.c -ocord\tests\cordtest.obj
Expand Down

0 comments on commit 32b23b4

Please sign in to comment.