4576918 [rkeene@sledge /home/rkeene/devel/cdplay-0.3.7]$ cat -n Makefile
 1 PREFIX=/usr/local
 2 prefix=$(PREFIX)
 3 bindir=$(prefix)/bin
 4 CC=gcc
 5 CFLAGS=-O2 -Wall -DMAKE_EJECT -DGLIBC2
 6 LIBS=cdrom.o cdplay.o random.o
 7 BINS=cdplay
 8 
 9 all:    $(LIBS) $(BINS) other
10 
11 static: 
12     make all LDFLAGS="$(CFLAGS) -static"
13 
14 libc5:
15     make all CFLAGS="$(CFLAGS) -UGLIBC2"
16 
17 debug:  
18     make all CFLAGS="$(CFLAGS) -DDEBUG"
19 
20 
21 other:
22     strip ./cdplay
23     ln -sf ./cdplay eject
24 
25 install:    all
26     chmod 0755 cdplay
27     chown root cdplay
28     cp cdplay $(bindir)
29     cp eject $(bindir)
30 
31 clean:
32     rm -f $(LIBS) *.bak eject cdplay core
33 
34 cdplay: cdplay.o cdrom.o random.o
35 cdrom.o: cdrom.c
36 cdplay.o: cdplay.c
37 random.o: random.c
4576919 [rkeene@sledge /home/rkeene/devel/cdplay-0.3.7]$

Click here to go back to the directory listing.
Click here to download this file.
last modified: 2004-07-26 19:38:55