42 # Summary of OS choice defines |
42 # Summary of OS choice defines |
43 # WIN32: building on Windows |
43 # WIN32: building on Windows |
44 # UNIX: building on *nix derivate (Linux, FreeBSD) |
44 # UNIX: building on *nix derivate (Linux, FreeBSD) |
45 # OSX: building on Mac OS X |
45 # OSX: building on Mac OS X |
46 # MORPHOS: building on MorphOS |
46 # MORPHOS: building on MorphOS |
|
47 # BEOS: building on BeOS |
47 # |
48 # |
48 # Summary of library choice defines |
49 # Summary of library choice defines |
49 # WITH_ZLIB: savegames using zlib |
50 # WITH_ZLIB: savegames using zlib |
50 # WITH_PNG: screenshots using PNG |
51 # WITH_PNG: screenshots using PNG |
51 # WITH_SDL: SDL video driver support |
52 # WITH_SDL: SDL video driver support |
491 # |
502 # |
492 |
503 |
493 |
504 |
494 ### Sources |
505 ### Sources |
495 |
506 |
496 ttd_SOURCES = \ |
507 C_SOURCES = \ |
497 ai.c ai_build.c ai_new.c ai_pathfinder.c ai_shared.c aircraft_cmd.c \ |
508 ai.c ai_build.c ai_new.c ai_pathfinder.c ai_shared.c aircraft_cmd.c \ |
498 aircraft_gui.c airport.c airport_gui.c aystar.c bridge_gui.c \ |
509 aircraft_gui.c airport.c airport_gui.c aystar.c bridge_gui.c \ |
499 clear_cmd.c command.c console.c console_cmds.c disaster_cmd.c dock_gui.c dummy_land.c economy.c \ |
510 clear_cmd.c command.c console.c console_cmds.c disaster_cmd.c dock_gui.c dummy_land.c economy.c \ |
500 engine.c engine_gui.c fileio.c gfx.c graph_gui.c grfspecial.c \ |
511 engine.c engine_gui.c fileio.c gfx.c graph_gui.c grfspecial.c \ |
501 industry_cmd.c industry_gui.c intro_gui.c landscape.c main_gui.c \ |
512 industry_cmd.c industry_gui.c intro_gui.c landscape.c main_gui.c \ |
505 road_cmd.c road_gui.c roadveh_cmd.c roadveh_gui.c saveload.c \ |
516 road_cmd.c road_gui.c roadveh_cmd.c roadveh_gui.c saveload.c \ |
506 screenshot.c settings.c settings_gui.c ship_cmd.c ship_gui.c \ |
517 screenshot.c settings.c settings_gui.c ship_cmd.c ship_gui.c \ |
507 smallmap_gui.c sound.c sprite.c spritecache.c station_cmd.c station_gui.c \ |
518 smallmap_gui.c sound.c sprite.c spritecache.c station_cmd.c station_gui.c \ |
508 strings.c subsidy_gui.c terraform_gui.c texteff.c town_cmd.c \ |
519 strings.c subsidy_gui.c terraform_gui.c texteff.c town_cmd.c \ |
509 town_gui.c train_cmd.c train_gui.c tree_cmd.c ttd.c tunnelbridge_cmd.c \ |
520 town_gui.c train_cmd.c train_gui.c tree_cmd.c ttd.c tunnelbridge_cmd.c \ |
510 unmovable_cmd.c vehicle.c vehicle_gui.c viewport.c water_cmd.c widget.c window.c \ |
521 unmovable_cmd.c vehicle.c vehicle_gui.c viewport.c water_cmd.c widget.c window.c |
|
522 CXX_SOURCES = |
511 |
523 |
512 ifdef WITH_SDL |
524 ifdef WITH_SDL |
513 ttd_SOURCES += sdl.c |
525 C_SOURCES += sdl.c |
514 endif |
526 endif |
515 |
527 |
516 ifdef WIN32 |
528 ifdef WIN32 |
517 ttd_SOURCES += win32.c w32dm.c |
529 C_SOURCES += win32.c w32dm.c |
518 else |
530 else |
519 ttd_SOURCES += extmidi.c unix.c |
531 C_SOURCES += extmidi.c unix.c |
520 endif |
532 endif |
521 |
533 |
522 ttd_OBJS = $(ttd_SOURCES:%.c=%.o) |
534 ttd_OBJS = $(C_SOURCES:%.c=%.o) $(CXX_SOURCES:%.cpp=%.o) |
|
535 |
|
536 ifdef BEOS |
|
537 CXX_SOURCES += bemidi.cpp |
|
538 endif |
523 |
539 |
524 ifdef WIN32 |
540 ifdef WIN32 |
525 # Resource file |
541 # Resource file |
526 ttd_OBJS += winres.o |
542 ttd_OBJS += winres.o |
527 endif |
543 endif |
528 |
544 |
529 ifdef WITH_DIRECTMUSIC |
545 ifdef WITH_DIRECTMUSIC |
530 ttd_SOURCES += w32dm2.cpp |
546 CXX_SOURCES += w32dm2.cpp |
531 ttd_OBJS += w32dm2.o |
|
532 endif |
547 endif |
533 |
548 |
534 ttd_DEPS1 = $(foreach obj,$(ttd_OBJS),.deps/$(obj)) |
549 ttd_DEPS1 = $(foreach obj,$(ttd_OBJS),.deps/$(obj)) |
535 ttd_DEPS = $(ttd_DEPS1:%.o=%.P) |
550 ttd_DEPS = $(ttd_DEPS1:%.o=%.P) |
536 |
551 |