1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
# Linux Makefile for Groovy console CD player
#
export CFLAGS
srcdir := .
CC := gcc
# Some CD players require an extra call to get them to start spinning.
# If the CD player doesn't play a CD, or is slow in doing so, try uncommenting
# this and rebuilding the binary.
#DEFINES := -DKICKSTART
CFLAGS := -O2 -fomit-frame-pointer $(DEFINES) $(machine)
LIBS := -lncurses
LDFLAGS := -s $(LIBS)
WARN := -Wall
# bindir is your installation dir
bindir := /usr/local/bin
binmode := 0755
mandir := /usr/man/man1
mangrp := daemon
manown := daemon
##kernver := $(basename $(shell uname -r))
##ifeq ($(kernver),1.0)
##CFLAGS := $(CFLAGS) -DKVER_10
##endif
.c.o:
$(CC) $(WARN) $(CFLAGS) -c $*.c
all: groovycd
lazy:
$(MAKE) all CFLAGS:='$(CFLAGS) -DWBLAZY'
groovycd: main.o hardware.o init.o cddb.o ncurses.o help.o
$(CC) -o $@ $^ $(LDFLAGS)
install: groovycd
cp groovycd $(bindir)
chmod $(binmode) $(bindir)/groovycd
@echo "***************************"
@echo groovycd NOT linked to gcd
@echo "***************************"
clean:
rm -f groovycd *.o core *~ erro *.bak
# Miroslav Vasko (vasko@ies.sk) - uninstall is a good thing
uninstall:
if [ -f $(bindir)/groovycd ] ; then
rm $(bindir)/groovycd
fi
if [ -L $(bindir)/gcd ] ; then
rm $(bindir)/gcd
fi
|