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