############################################################
# Makefile for xm version
############################################################

SRCS= icons.c \
		pager.c \
		realm.c \
		xbind.c \
		xevents.c \
		xicons.c \
		xinit.c \
		xmenu.c \
		xmisc.c \
		xwindow.c

OBJS= icons.o \
		pager.o \
		realm.o \
		xbind.o \
		xevents.o \
		xicons.o \
		xinit.o \
		xmenu.o \
		xmisc.o \
		xwindow.o

LOCALCFLAGS	= -Iinclude_x -Iicons
############################################################
# Rules
############################################################

all: target-$(HAVE_MOTIF) 

target-false:
	@echo "No Motif libarires found"

target-true: xmemp

xmemp: $(OBJS) $(LIBS)
	$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) $(XMOTIF)  $(OTHERLIBS)

clean:
	rm -f xmemp $(OBJS)

depend: 
	$(DEPEND) $(CFLAGS) $(SRCS)
