# Makefile for xfree.
# Written by Derek Atkins, warlord@athena.mit.edu

CC = cc
RM = rm -f
LN = ln -s
BUILDTOP = ../../.

CFLAGS = $(DBG) $(INCLUDE) $(DEFINES) $(GLOBAL_CDEFS)
INCLUDE = $(LINCLUDES) -I$(BUILDTOP)/include

GLOBAL_CDEFS = 

DBG = -O

LDFLAGS = 

SRCS = xfree.c
OBJS = xfree.o
LIBS = 
SRCDIR = /mit/warlord/C/xfree

BINDIR = /usr/sipb/$(MACHINE)bin
MANDIR = /usr/sipb/man
MANSECT = 1

.c.o:
	$(RM) $*.o
	$(CC) -c $(CFLAGS) $*.c

all:: xfree

xfree:	$(OBJS)
	$(RM) $@
	$(CC) $(CFLAGS) -o $@ ${OBJS} ${LIBS}

clean:
	$(RM) xfree $(OBJS) *~ core

install: xfree
	install -c -s xfree $(DESTDIR)$(BINDIR)
	install -c xfree.man $(DESTDIR)$(MANDIR)/man$(MANSECT)/xfree.$(MANSECT)
