makefile.mes
| r1358 | r1359 | |
| 222 | 222 | # MESS on Windows builds a DLL by default |
| 223 | 223 | ifeq ($(OSD),windows) |
| 224 | 224 | EMULATORDLL = $(FULLNAME)lib.dll |
| 225 | | EMULATORALL = $(EMULATORDLL) $(EMULATORCLI) $(EMULATORGUI) |
| 225 | EMULATOR = $(EMULATORDLL) $(EMULATORCLI) $(EMULATORGUI) |
| 226 | 226 | else |
| 227 | | EMULATORALL = $(EMULATORCLI) |
| 227 | EMULATOR = $(EMULATORCLI) |
| 228 | 228 | endif |
| 229 | 229 | |
| 230 | 230 | |
| r1358 | r1359 | |
| 462 | 462 | # include files which define additional targets |
| 463 | 463 | #------------------------------------------------- |
| 464 | 464 | |
| 465 | | all: maketree emulator tools |
| 465 | all: maketree buildtools emulator tools help |
| 466 | 466 | |
| 467 | 467 | |
| 468 | 468 | |
| r1358 | r1359 | |
| 491 | 491 | # primary targets |
| 492 | 492 | #------------------------------------------------- |
| 493 | 493 | |
| 494 | | emulator: maketree $(BUILD) $(EMULATORALL) |
| 494 | emulator: maketree $(BUILD) $(EMULATOR) |
| 495 | 495 | |
| 496 | 496 | buildtools: maketree $(BUILD) |
| 497 | 497 | |
| 498 | 498 | tools: maketree $(TOOLS) |
| 499 | 499 | |
| 500 | help: maketree $(MESSHELP) |
| 501 | |
| 500 | 502 | maketree: $(sort $(OBJDIRS)) |
| 501 | 503 | |
| 502 | 504 | clean: |
| 503 | 505 | @echo Deleting object tree $(OBJ)... |
| 504 | 506 | $(RM) -r $(OBJ) |
| 505 | | @echo Deleting $(EMULATORALL)... |
| 506 | | $(RM) $(EMULATORALL) |
| 507 | @echo Deleting $(EMULATOR)... |
| 508 | $(RM) $(EMULATOR) |
| 507 | 509 | @echo Deleting $(TOOLS)... |
| 508 | 510 | $(RM) $(TOOLS) |
| 509 | 511 | ifdef MAP |
| r1358 | r1359 | |
| 526 | 528 | # executable targets and dependencies |
| 527 | 529 | #------------------------------------------------- |
| 528 | 530 | |
| 529 | | |
| 530 | 531 | ifeq ($(OSD),windows) |
| 531 | 532 | |
| 532 | 533 | ifdef MSVC_BUILD |
| r1358 | r1359 | |
| 535 | 536 | DLLLINK=dll |
| 536 | 537 | endif |
| 537 | 538 | |
| 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 |
| 539 | 540 | # always recompile the version string |
| 540 | 541 | $(CC) $(CDEFS) $(CFLAGS) -c $(SRC)/version.c -o $(VERSIONOBJ) |
| 541 | 542 | @echo Linking $@... |
| r1358 | r1359 | |
| 553 | 554 | |
| 554 | 555 | else |
| 555 | 556 | |
| 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) |
| 557 | 558 | # always recompile the version string |
| 558 | 559 | $(CC) $(CDEFS) $(CFLAGS) -c $(SRC)/version.c -o $(VERSIONOBJ) |
| 559 | 560 | @echo Linking $@... |
src/mess/tools/messdocs/messdocs.mak
| r1358 | r1359 | |
| 10 | 10 | # messdocs executable name |
| 11 | 11 | MESSDOCS = messdocs$(EXE) |
| 12 | 12 | |
| 13 | MESSHELP = mess.chm |
| 14 | |
| 13 | 15 | # messdocs directories |
| 14 | 16 | OBJDIRS += $(MESSOBJ)/tools/messdocs |
| 15 | 17 | |
| 18 | HELPOBJ = $(OBJ)/help |
| 16 | 19 | |
| 17 | 20 | |
| 18 | 21 | #------------------------------------------------- |
| r1358 | r1359 | |
| 30 | 33 | # rules to build the messdocs executable |
| 31 | 34 | #------------------------------------------------- |
| 32 | 35 | |
| 33 | | messdocs$(EXE): $(MESSDOCS_OBJS) $(LIBUTIL) $(LIBOCORE) $(EXPAT) |
| 36 | $(OBJ)/build/$(MESSDOCS): $(MESSDOCS_OBJS) $(LIBUTIL) $(LIBOCORE) $(EXPAT) |
| 34 | 37 | @echo Linking $@... |
| 35 | 38 | $(LD) $(LDFLAGS) $^ $(LIBS) $(EXPAT) -o $@ |
| 36 | 39 | |
| r1358 | r1359 | |
| 40 | 43 | # rule for building the mess help file |
| 41 | 44 | #------------------------------------------------- |
| 42 | 45 | |
| 43 | | mess.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) $@ |