# Part 0
# load common stuff
TOPDIR = ..
include $(TOPDIR)/Makefile.common
#$(warning INCS=$(INCS))

INCS += -I../
SRC := egg-marshal.c   eggtraymanager.c  fixedtip.c main.c  
SCFLAGS := $(CFLAGS) -shared -fPIC

TARGET := tray.so


ifneq ($(MAKECMDGOALS),clean)
ifneq ($(MAKECMDGOALS),distclean)
ifneq ($(MAKECMDGOALS),tar)
-include $(DEP)
endif
endif
endif

all:$(TARGET)
$(TARGET): $(OBJ) 
	$(call summary,LD  ,$@)
	$(Q)$(CC) $(SCFLAGS) $(INCS) $(OBJ) -o $@
ifeq (0,$(DEVEL))
	$(Q)strip $@
endif



install: 
	install -d  $(PREFIX)/share/fbpanel/plugins
	install -m 644 $(TARGET) $(PREFIX)/share/fbpanel/plugins

uninstall:
	$(RM) $(PREFIX)/share/fbpanel/plugins/$(TARGET)

