#
# Makefile for spipll
#

SHELL = /bin/sh

srcdir = .

libdir = ${exec_prefix}/lib
includedir = ${prefix}/include
oldincludedir = /usr/include

top_builddir = .

CC = gcc
PACKAGE = spipll
RANLIB = ranlib

bin_PROGRAMS = spipll
spipll_SOURCES = main.c

EXTRA_DIST = main.c spipll.h

bin_PROGRAMS = spipll
PROGRAMS =  $(bin_PROGRAMS)

DEFS = -I. -I$(srcdir) -I..
CPPFLAGS = 
LDFLAGS = 
spipll_OBJECTS = main.o
spipll_DEPENDENCIES = 
spipll_LDFLAGS = 
CFLAGS = -g -O2
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@

TAR = tar
GZIP = --best
SOURCES = $(spipll_SOURCES)
OBJECTS = $(spipll_OBJECTS)

all: Makefile $(PROGRAMS)

.SUFFIXES:
.SUFFIXES: .S .c .o .s

clean-binPROGRAMS:
	-test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)

.c.o:
	$(COMPILE) -c $<

.s.o:
	$(COMPILE) -c $<

.S.o:
	$(COMPILE) -c $<

mostlyclean-compile:
	-rm -f *.o core *.core

spipll: $(spipll_OBJECTS) $(spipll_DEPENDENCIES)
	@rm -f spipll
	$(LINK) $(spipll_LDFLAGS) $(spipll_OBJECTS) $(spipll_LDADD) 
$(LIBS)

main.o: main.c spipll.h


clean-generic:
	-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)

clean:  clean-binPROGRAMS clean-generic \
		mostlyclean-compile

#
#  End of Makefile
#
