#nanox/pixilwm/Makefile CFLAGS ?= CFLAGS += -DVIRTUAL_WINDOWS INCLUDES += -I$(BASE_DIR)/sys/pixilwm INSTALL_SODIR=$(INSTALL_DIR)/share/pixilwm TARGET=pixilwm # These are extra targets that are defined locally TARGET_EXTRAS += applets/date.so ifeq ($(CONFIG_PIXILWM_PM),y) TARGET_EXTRAS += applets/backlight.so TARGET_EXTRAS += applets/battery.so endif INSTALL_EXTRAS=inst_applets ifeq ($(CONFIG_PIXILWM_THEMES),y) INSTALL_EXTRAS += inst_themes endif OBJS-y = applets.o main.o wlist.o config.o clients.o container.o OBJS-y += inputs.o apps.o home.o root.o categories.o exec.o OBJS-y += icons.o screensaver.o OBJS-$(CONFIG_COLOSSEUM) += ipc.o OBJS-$(CONFIG_PIXILWM_PM) += powerman.o OBJS-$(CONFIG_PIXILWM_THEMES) += themes.o themesconfig.o OBJS-$(CONFIG_PIXILWM_MENUS) += sys_menu.o OBJS := $(OBJS-y) LIBS+= -lwm -lpixil -lnano-X ifeq ($(CONFIG_PIXILWM_THEMES),y) LIBS += -lxml endif ifeq ($(CONFIG_COLOSSEUM),y) LIBS+=-lipc endif ifeq ($(CONFIG_PAR), y) LIBS+=-lpar endif LIBS+=-ldl BUILD_CFLAGS=-rdynamic CLEAN_EXTRAS=clean_themes include $(BASE_DIR)/Rules.make clean_themes: rm -rf applets/*.o rm -rf applets/*.so inst_themes: mkdir -p $(INSTALL_DIR)/share/themes cp -r themes/pixil $(INSTALL_DIR)/share/themes inst_applets: mkdir -p $(INSTALL_DIR)/share/pixilwm cp applets/*.so $(INSTALL_DIR)/share/pixilwm applets/backlight.so: applets/backlight.o $(CC) -shared -o $@ $< applets/battery.so: applets/battery.o $(CC) -shared -o $@ $< applets/date.so: applets/date.o $(CC) -shared -o $@ $<