# Makefile for RemoteD

# Where compiled binary should be placed
DEST=/usr/local/sbin

CC = gcc
CFLAGS = -Wall -O2 -m486 # -DDEBUG -DCONF_DEBUG

all: remoted

remoted: remoted.h remoted.c
	$(CC) remoted.c -o remoted $(CFLAGS)

install: remoted
	install -o root -g root -m 0755 -s remoted $(DEST)/remoted
	install -o root -g root -m 0755 remoted.conf /etc/remoted.conf
clean: 
	rm -rf remoted core *.o errlist
