#
# Makefile for libsipp
#

VERSION = 3.1

#These values are default if they are not overridden from the command line:
CC = cc -ansi
CFLAGS = -g -I. -I/com/ftp/pub/courses/6.837/ps1/X11/ \
		-I/com/ftp/pub/courses/6.837/ps1/include \
		-I/usr/include

SHELL = /bin/sh
RM = rm -f
CP = cp
RANLIB = ranlib

HDRS = main.h
FILES = main scanconvert
SRCS = $(FILES:=.c)
OBJS = $(FILES:%=$(OBJDIR)%.o)

OUTPUT_OPTION = -o $@
$(OBJDIR)%.o:%.c
	$(COMPILE.c) $(OUTPUT_OPTION) $<


# These are used if no other values are given at the command line:
SPAMLIB = /com/ftp/pub/courses/6.837/ps1/lib/
LIBDIR = /usr/local/lib

all:	 	spam

spam:		$(OBJS) $(SPAMLIB)libspam.a
	$(CC) -o $@ $(OBJS) -L$(SPAMLIB) -lX11 -lm -lspam

clean: 
	$(RM) *.o *~ core spa
