1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 05:16:38 +02:00

Cleanup of Curses and Gtk makefiles

This commit is contained in:
Sebastien Helleu
2008-03-07 17:43:30 +01:00
parent 468422e130
commit b361066e69
4 changed files with 12 additions and 28 deletions
+2
View File
@@ -42,6 +42,8 @@ ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
ADD_EXECUTABLE(${EXECUTABLE} ${WEECHAT_CURSES_SRC})
INCLUDE_DIRECTORIES(.. ../../core ../../plugins)
# Because of a linker bug, we have to link 2 times with libweechat_core.a
TARGET_LINK_LIBRARIES(${EXECUTABLE} -lweechat_core ${STATIC_LIBS} ${EXTRA_LIBS})
INSTALL(TARGETS ${EXECUTABLE} RUNTIME DESTINATION bin)
+4 -14
View File
@@ -18,22 +18,12 @@ INCLUDES = -DLOCALEDIR=\"$(datadir)/locale\" $(NCURSES_CFLAGS)
bin_PROGRAMS = weechat-curses
weechat_curses_LDADD = ../../core/weechat.o \
../../core/wee-backtrace.o \
../../core/wee-command.o \
../../core/wee-config.o \
../../core/wee-config-file.o \
../../core/wee-debug.o \
../../core/wee-hook.o \
../../core/wee-input.o \
../../core/wee-list.o \
../../core/wee-log.o \
../../core/wee-upgrade.o \
../../core/wee-string.o \
../../core/wee-utf8.o \
../../core/wee-util.o \
# Because of a linker bug, we have to link 2 times with lib_weechat_core.a
# (and it must be 2 different path/names to be keeped by linker)
weechat_curses_LDADD = ./../../core/lib_weechat_core.a \
../../plugins/lib_weechat_plugins.a \
../lib_weechat_gui_common.a \
../../core/lib_weechat_core.a \
$(PLUGINS_LFLAGS) \
$(NCURSES_LFLAGS)
+2
View File
@@ -34,6 +34,8 @@ ENDIF(PKG_CONFIG_FOUND)
ADD_EXECUTABLE(${EXECUTABLE} ${WEECHAT_GTK_SRC})
INCLUDE_DIRECTORIES(.. ../../core ../../plugins)
# Because of a linker bug, we have to link 2 times with libweechat_core.a
TARGET_LINK_LIBRARIES(${EXECUTABLE} -lweechat_core ${STATIC_LIBS} ${EXTRA_LIBS})
INSTALL(TARGETS ${EXECUTABLE} RUNTIME DESTINATION bin)
+4 -14
View File
@@ -18,22 +18,12 @@ INCLUDES = -DLOCALEDIR=\"$(datadir)/locale\" $(GTK_CFLAGS)
bin_PROGRAMS = weechat-gtk
weechat_gtk_LDADD = ../../core/weechat.o \
../../core/wee-backtrace.o \
../../core/wee-command.o \
../../core/wee-config.o \
../../core/wee-config-file.o \
../../core/wee-debug.o \
../../core/wee-hook.o \
../../core/wee-input.o \
../../core/wee-list.o \
../../core/wee-log.o \
../../core/wee-upgrade.o \
../../core/wee-string.o \
../../core/wee-utf8.o \
../../core/wee-util.o \
# Because of a linker bug, we have to link 2 times with lib_weechat_core.a
# (and it must be 2 different path/names to be keeped by linker)
weechat_gtk_LDADD = ./../../core/lib_weechat_core.a \
../../plugins/lib_weechat_plugins.a \
../lib_weechat_gui_common.a \
../../core/lib_weechat_core.a \
$(PLUGINS_LFLAGS) \
$(GTK_LFLAGS)