# Makefile for JUKEBOX 1.1

CC = gcc
LINKER = gcc
OBJS = jukebox.o
SRCS = jukebox.c

# Change the paths in the following lines...
CFLAGS = -O -I/usr/local/include
LDFLAGS = -L/usr/local/lib
DEST = /usr/local/bin

all: jukebox

world: all install

jukebox: $(OBJS)
	$(LINKER) $(LDFLAGS) $(OBJS) -lrplay -o jukebox

clean:
	rm -f $(OBJS) core jukebox

depend:
	makedepend $(SRCS)

install: jukebox
	@echo Installing jukebox in $(DEST)
	@install -c jukebox $(DEST)

tar: clean
	(cd .. ; tar -cvf jukebox.tar jukebox ; compress jukebox.tar)

zip: clean
	(cd .. ; zip -9 -o -y -r jukebox.zip jukebox)
