#
#
#
DESTDIR =
INCLUDES = -I../include
CONFDIR = /usr/new
XLIB = ../Xlib/libX.a
CFLAGS = -O $(INCLUDES)
CLIBS = -lm

all:	xaclock
xaclock: xclock.o
	cc $(CFLAGS) -o xaclock xclock.o $(XLIB) $(CLIBS)

xclock.o: bell.bm xclock.cursor alarm.cursor slash.cursor

install: all
	install -s xaclock $(DESTDIR)$(CONFDIR)
	chmod 755 $(DESTDIR)$(CONFDIR)/xaclock

clean: 
	rm -f *~* *.bak core \#*
	rm -f xaclock.c.[0-9]* Makefile.[0-9]* xaclock.1.[0-9]*
	rm -f xaclock.o xaclock xaclock_d
