CC=gcc
#CFLAGS=-g -Wall -DDUMMY_BUILD -Iinclude
CFLAGS=-g -Wall -Iinclude
LDFLAGS=-L/usr/X11R6/lib -lX11
OBJS=libx11.a

all: xepdmgr xepdmgrclient.o xepdmgrtest

xepdmgr: xepdmgr.c
	( cd libx11 ; make )
	$(CC) $(CFLAGS) -o xepdmgr xepdmgr.c $(OBJS) -lerdm

xepdmgrclient.o: xepdmgrclient.c xepdmgrclient.h

xepdmgrtest.o: xepdmgrtest.c xepdmgrclient.h

xepdmgrtest: xepdmgrtest.o xepdmgrclient.o
	$(CC) $(CFLAGS) $(LDFLAGS) -o xepdmgrtest xepdmgrtest.o xepdmgrclient.o

clean:
	rm -f *.o xepdmgr xepdmgrtest
