Previous 15994 Revisions Next

r1359 Sunday 2nd December, 2007 at 14:18:36 UTC by Dirk Best
Further updates to the makefiles. The MESS help file is now built as part of the usual compilation and messdocs.exe has been moved to the build tools directory.
[ROOT]makefile.mes
[src/mess]mess.mak
[src/mess/osd/windows]ui
[src/mess/tools/dat2html]dat2html.mak
[src/mess/tools/messdocs]messdocs.mak

makefile.mes
r1358r1359
222222# MESS on Windows builds a DLL by default
223223ifeq ($(OSD),windows)
224224EMULATORDLL = $(FULLNAME)lib.dll
225EMULATORALL = $(EMULATORDLL) $(EMULATORCLI) $(EMULATORGUI)
225EMULATOR = $(EMULATORDLL) $(EMULATORCLI) $(EMULATORGUI)
226226else
227EMULATORALL = $(EMULATORCLI)
227EMULATOR = $(EMULATORCLI)
228228endif
229229
230230
r1358r1359
462462# include files which define additional targets
463463#-------------------------------------------------
464464
465all: maketree emulator tools
465all: maketree buildtools emulator tools help
466466
467467
468468
r1358r1359
491491# primary targets
492492#-------------------------------------------------
493493
494emulator: maketree $(BUILD) $(EMULATORALL)
494emulator: maketree $(BUILD) $(EMULATOR)
495495
496496buildtools: maketree $(BUILD)
497497
498498tools: maketree $(TOOLS)
499499
500help: maketree $(MESSHELP)
501
500502maketree: $(sort $(OBJDIRS))
501503
502504clean:
503505   @echo Deleting object tree $(OBJ)...
504506   $(RM) -r $(OBJ)
505   @echo Deleting $(EMULATORALL)...
506   $(RM) $(EMULATORALL)
507   @echo Deleting $(EMULATOR)...
508   $(RM) $(EMULATOR)
507509   @echo Deleting $(TOOLS)...
508510   $(RM) $(TOOLS)
509511ifdef MAP
r1358r1359
526528# executable targets and dependencies
527529#-------------------------------------------------
528530
529
530531ifeq ($(OSD),windows)
531532
532533ifdef MSVC_BUILD
r1358r1359
535536DLLLINK=dll
536537endif
537538
538$(EMULATORDLL): $(VERSIONOBJ) $(OBJ)/mess/osd/windows/messlib.o $(DRVLIBS) $(LIBOSD) $(LIBEMU) $(LIBCPU) $(LIBSOUND) $(LIBUTIL) $(EXPAT) $(ZLIB) $(LIBOCORE) $(LIBWINUI) $(MESS_WINOBJ)/mess.res
539$(EMULATORDLL): $(VERSIONOBJ) $(OBJ)/mess/osd/windows/messlib.o $(DRVLIBS) $(LIBOSD) $(LIBEMU) $(LIBCPU) $(LIBSOUND) $(LIBUTIL) $(EXPAT) $(ZLIB) $(LIBOCORE) $(MESS_WINOBJ)/mess.res
539540# always recompile the version string
540541   $(CC) $(CDEFS) $(CFLAGS) -c $(SRC)/version.c -o $(VERSIONOBJ)
541542   @echo Linking $@...
r1358r1359
553554
554555else
555556
556$(EMULATORCLI): $(VERSIONOBJ) $(DRVLIBS) $(LIBOSD) $(LIBEMU) $(LIBCPU) $(LIBSOUND) $(LIBUTIL) $(EXPAT) $(ZLIB) $(LIBOCORE) $(RESFILE)
557$(EMULATOR): $(VERSIONOBJ) $(DRVLIBS) $(LIBOSD) $(LIBEMU) $(LIBCPU) $(LIBSOUND) $(LIBUTIL) $(EXPAT) $(ZLIB) $(LIBOCORE) $(RESFILE)
557558# always recompile the version string
558559   $(CC) $(CDEFS) $(CFLAGS) -c $(SRC)/version.c -o $(VERSIONOBJ)
559560   @echo Linking $@...
src/mess/tools/dat2html/dat2html.mak
r1358r1359
4242# rule for building sysinfo.htm
4343#-------------------------------------------------
4444 
45sysinfo.htm: dat2html$(EXE)
45sysinfo.htm: $(DAT2HTML)
4646   @echo Generating $@...
47   @$(CURPATH)dat2html$(EXE) sysinfo.dat
47   @$(CURPATH)$(DAT2HTML) sysinfo.dat
src/mess/tools/messdocs/messdocs.mak
r1358r1359
1010# messdocs executable name
1111MESSDOCS = messdocs$(EXE)
1212
13MESSHELP = mess.chm
14
1315# messdocs directories
1416OBJDIRS += $(MESSOBJ)/tools/messdocs
1517
18HELPOBJ = $(OBJ)/help
1619
1720
1821#-------------------------------------------------
r1358r1359
3033# rules to build the messdocs executable
3134#-------------------------------------------------
3235
33messdocs$(EXE):   $(MESSDOCS_OBJS) $(LIBUTIL) $(LIBOCORE) $(EXPAT)
36$(OBJ)/build/$(MESSDOCS): $(MESSDOCS_OBJS) $(LIBUTIL) $(LIBOCORE) $(EXPAT)
3437   @echo Linking $@...
3538   $(LD) $(LDFLAGS) $^ $(LIBS) $(EXPAT) -o $@
3639
r1358r1359
4043# rule for building the mess help file
4144#-------------------------------------------------
4245
43mess.chm: $(MESSDOCS)
44   $(MESSDOCS) docs/wintoc.xml $(OBJ)/help
45   $(HHC) $(subst /,\\,$(OBJ)/help)\\mess.hhp
46   @cp $(OBJ)/help/mess.chm $@
46$(MESSHELP): $(OBJ)/build/$(MESSDOCS)
47   $(subst /,\,$(OBJ)/build/$(MESSDOCS)) docs/wintoc.xml $(HELPOBJ)
48   $(HHC) $(subst /,\\,$(HELPOBJ))\\mess.hhp
49   @cp $(HELPOBJ)/$(MESSHELP) $@
src/mess/mess.mak
r1358r1359
11501150
11511151# build additional tools if we are on building for Windows
11521152ifeq ($(OSD),windows)
1153TOOLS += $(WIMGTOOL) $(MESSDOCS)
1153TOOLS += $(WIMGTOOL)
11541154endif
11551155
11561156

Previous 15994 Revisions Next


© 1998-2018 The MESS Team