@@ -103,7 +103,7 @@ endif()
103103string (REGEX REPLACE "^v" "" C2POOL_GIT_VERSION "${C2POOL_GIT_VERSION} " )
104104
105105# Main C2Pool Enhanced Application (refactored with mining_shares/p2p_shares separation)
106- add_executable (c2pool c2pool_refactored .cpp )
106+ add_executable (c2pool main_ltc .cpp )
107107target_compile_definitions (c2pool PRIVATE C2POOL_VERSION= "${C2POOL_GIT_VERSION} " )
108108target_link_libraries (c2pool
109109 c2pool_node_enhanced
@@ -122,7 +122,7 @@ target_link_libraries(c2pool
122122target_link_libraries (c2pool c2pool_hashrate pool ) # OBJECT-lib SCC direct-naming (#22/#39)
123123
124124# Enhanced version with explicit name (for backward compatibility)
125- add_executable (c2pool_enhanced c2pool_refactored .cpp )
125+ add_executable (c2pool_enhanced main_ltc .cpp )
126126target_link_libraries (c2pool_enhanced
127127 c2pool_node_enhanced
128128 c2pool_payout
@@ -137,6 +137,28 @@ target_link_libraries(c2pool_enhanced
137137)
138138target_link_libraries (c2pool_enhanced c2pool_hashrate pool ) # OBJECT-lib SCC direct-naming (#22/#39)
139139
140+ # c2pool-ltc: LTC (+ embedded DOGE aux merged-mining) reference entrypoint.
141+ # The coin-matrix / release presence gate keys on src/c2pool/main_ltc.cpp
142+ # (see PR #66); this target packages the LTC binary as c2pool-ltc. LTC is the
143+ # reference coin, so this mirrors the c2pool_enhanced link set exactly (c2pool
144+ # and c2pool_enhanced already build the same LTC-native main). DOGE aux rides
145+ # via c2pool_merged_mining -- always compiled in, NO -DAUX_DOGE flag.
146+ add_executable (c2pool-ltc main_ltc.cpp )
147+ target_compile_definitions (c2pool-ltc PRIVATE C2POOL_VERSION= "${C2POOL_GIT_VERSION} " )
148+ target_link_libraries (c2pool-ltc
149+ c2pool_node_enhanced
150+ c2pool_payout
151+ c2pool_merged_mining
152+ core
153+ ltc
154+ c2pool_storage
155+ ltc_coin
156+ nmc_coin # NMC coin-layer: out-of-line Transaction/MutableTransaction ctors for embedded merged-mining (2b-ii)
157+ nlohmann_json::nlohmann_json
158+ ${Boost_LIBRARIES}
159+ )
160+ target_link_libraries (c2pool-ltc c2pool_hashrate pool ) # OBJECT-lib SCC direct-naming (#22/#39)
161+
140162# c2pool-btc: BTC SPV embedded p2pool — Phase B0 scaffold (stub entry).
141163# Library `btc` is a clone of `ltc` with namespace renamed and CMake targets
142164# adjusted; real entry-point port is in later B-phases.
@@ -302,13 +324,16 @@ target_link_libraries(c2pool-dash
302324if (WIN32 )
303325 target_link_libraries (c2pool ws2_32 mswsock bcrypt dbghelp )
304326 target_link_libraries (c2pool_enhanced ws2_32 mswsock bcrypt dbghelp )
327+ target_link_libraries (c2pool-ltc ws2_32 mswsock bcrypt dbghelp )
305328endif ()
306329if (MSVC )
307330 target_compile_options (c2pool PRIVATE /bigobj )
308331 target_compile_options (c2pool_enhanced PRIVATE /bigobj )
332+ target_compile_options (c2pool-ltc PRIVATE /bigobj )
309333 # Match Linux 8MB stack (MSVC default is 1MB — deep share validation can overflow)
310334 target_link_options (c2pool PRIVATE /STACK:8388608 )
311335 target_link_options (c2pool_enhanced PRIVATE /STACK:8388608 )
336+ target_link_options (c2pool-ltc PRIVATE /STACK:8388608 )
312337endif ()
313338
314339# Test applications
0 commit comments