Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a Makefile for the 16-bit part of the build process
Well, that became unbearable pretty quickly. Not sure whether I'm doing all this Makefile business right, but this looks pretty nice. It doesn't really help much at this point though because the 32-bit part is still entirely separate and forces everything to rebuild all the time, but at least it aborts on C compiler errors.
- Loading branch information
Showing
2 changed files
with
36 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# ReC98 | ||
# ----- | ||
# Makefile for the 16-bit part of the build process | ||
|
||
CFLAGS = -ls -Ilibs\master.lib\ -Lbin\ | ||
|
||
TH01 = \zunsoft.com \op.exe \reiiden.exe \fuuin.exe | ||
TH02 = \zuninit.com \zun_res.com \op.exe \main.exe \maine.exe | ||
TH03 = \zunsp.com \res_yume.com \op.exe \main.exe \mainl.exe | ||
TH04 = \res_huma.com \op.exe \main.exe \maine.exe | ||
TH05 = \res_kso.com \op.exe \main.exe \maine.exe | ||
|
||
all: th01 th02 th03 th04 th05 | ||
@echo Done. Find the executables in the bin\ subdirectory. | ||
|
||
th01:: $(TH01:\=bin\th01\) | ||
th02:: $(TH02:\=bin\th02\) | ||
th03:: $(TH03:\=bin\th03\) | ||
th04:: $(TH04:\=bin\th04\) | ||
th05:: $(TH05:\=bin\th05\) | ||
|
||
.obj.exe: | ||
$(CC) $(CFLAGS) -ml $** | ||
|
||
.obj.com: | ||
tlink /t /3 $** | ||
|
||
bin\th01\zunsoft.com: th01\zunsoft.c | ||
$(CC) $(CFLAGS) -mt -lt -O -a2 -nbin\th01\ $** masters.lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters