# Makefile for building rcd
#--------------------------
# by r'alf, 28/12/93

# WARNING: compiling RCD has only be done under Linux (0.99pl10 or later)
# I suppose it not to compile under other plateforms but you can try...

# some defines...
#----------------

# >> the C compiler name <<
# the next one is for SUN (for example)
# CC = cc
# the next one is for Linux
CC = gcc
# do you want to debug it ? if yes, uncomment the next line:
# COPT = -g
# you may want to add "-traditional" to the COPT. I don't bother why.

# some libraries ?
# the library ncurses (new curses) must be included
# (I don't think it can work with the old "curses").
LIBS = -lncurses

# what do you want make to build, today ?
#----------------------------------------
all:: rcd

#.c.o:
#	$(CC) -c $(COPT) -o $@ $*.c


# Hum... what was the next line usefull for ? I don't remember...
# I do think there is a unusefull line herein...
#----------------------------------------------------------------
#rcd:	rcd.o
#	$(CC) $(COPT) -o rcd rcd.o $(LIBS)

rcd:	rcd.c
	$(CC) -o rcd rcd.c $(COPT) $(LIBS)


# dependancies (.c / .h --> .o)
#------------------------------
rcd.o: rcd.c


