# @(#)Makefile	1.4 21/9/92 (UKC)
#
# Compiler needs to be gcc if UKC_TEST_FLAGS is defined
CC= gcc

# If you don't use English as your native language, you may
# want to alter the line 
# #define DAYS_OF_WEEK "umtwrfs*"
# in rclock.c, which defines abbreviations for the weekdays.

# Take your pick:
# -DREMINDERS - enables the appointment reminder functions
# -DMAIL - enables xbiff type mail reminders
# -DICONWIN - enables the fancy icons
#
# Use any or all options - program size approximately doubles
# going from no options to all options.
#
# -N seems to be bad on Suns
#CFLAGS= -O2 -s -N -DMAIL -DREMINDERS -DICONWIN
CFLAGS= -O2 -s -DMAIL -DREMINDERS -I/usr/X11/include 

MANDIR=/usr/man/X
BIN=/usr/X11/bin

OBJ=rclock.o
SRC=rclock.c

rclock: $(OBJ)
	cc -o rclock $(OBJ) -L/usr/X11/lib -lX11 -lXbsd -lsocket

install: $(BIN)/rclock $(MANDIR)/rclock.1

$(MANDIR)/rclock.1: rclock.1
	install -c -m 644 -o root -g root $? $@

$(BIN)/rclock: rclock
	install -c -m 755 -o root -g  root $? $@

clean:
	rm -f $(OBJ) 
	rm -f rclock
	rm -f *~

depend:
	makedepend -- $(CFLAGS) -- $(SRC)
