# Makefile for mosstatd
# created by Matt Rechenburg
#
OWNER=root
GROUP=root
CTAGS= ctags -x >tags
CFLAGS= -O
LDFLAGS= -s -lmos
CC=gcc
INSTALL=install
SRCS=mosstatd.c
OBJS=mosstatd.o
BINDIR=/usr/bin



all:    mosstatd

# To make the executable
mosstatd: $(OBJS)
	$(CC) $(LDFLAGS) -o $@ $(OBJS)

# To install it in the right place
install: mosstatd
	$(INSTALL) -c -o $(OWNER) -g $(GROUP) -m 755 mosstatd $(BINDIR)

# To uninstall it
uninstall:
	-rm $(BINDIR)/mosstatd

# clean up
clean:
	-rm *.o
	-rm mosstatd

