Do not create unnecessary test binary. This also prevents TEXTRELS errors on systems where relocations are tracked.

This commit is contained in:
Sanel Zukan 2012-12-27 15:34:59 +00:00
parent 1046c2d4d5
commit 22f4e094cf

View File

@ -12,6 +12,7 @@ SubDir TOP ede-panel applets start-menu ;
MENU_SRC = XdgMenuReader.cpp DesktopEntry.cpp MenuRules.cpp ;
if $(MENU_TESTS) {
Library libmenu : $(MENU_SRC) ;
ObjectC++Flags $(MENU_SRC) : -fPIC $(FLTKINCLUDE) -I [ FDirName $(TOP) ede-panel ] $(EDELIBINCLUDE) ;
@ -19,3 +20,6 @@ PanelApplet start_menu : StartMenu.cpp : -L$(SUBDIR) -lmenu ;
EdeProgram ede-menu-spec-test : ede-menu-spec-test.cpp ;
LinkAgainstAsFirst ede-menu-spec-test : -L$(SUBDIR) -lmenu ;
} else {
PanelApplet start_menu : StartMenu.cpp $(MENU_SRC) ;
}