# EVMS Graphical User Interface

include ../../make.rules

NAME	= evmsgui

MAJOR_VERSION   = 1
MINOR_VERSION   = 0
PATCH_LEVEL     = 0

TARGET	= $(NAME)
SRCS	:= $(shell ls *.c)
OBJS	:= $(shell ls *.c | sed s/\\.c/\\.o/)
INCLUDES += $(GTK_CFLAGS)

all: .depend $(TARGET)

install: all
	../../mkinstalldirs.sh $(DESTDIR)$(sbindir)
	$(INSTALL) -m 755 $(TARGET) $(DESTDIR)$(sbindir)

uninstall:
	rm -f $(DESTDIR)$(sbindir)/$(TARGET)

$(TARGET): $(OBJS)
	$(CC) $(LIBDIRS) $(GTK_LIBS) $(EFENCE) -ldlist -levms -o $(TARGET) $(OBJS)

clean:
	rm -f .depend *.o $(TARGET)

distclean: clean

.depend:
	$(CPP) -M $(EVMSCFLAGS) *.c > .depend

dep: .depend

# grab our dep file
ifeq (.depend,$(wildcard .depend))
include .depend
endif
