xfreecd

Audio CD player for X
git clone https://www.brianlane.com/git/xfreecd
Log | Files | Refs | README | LICENSE

Makefile (1233B)


      1 #
      2 # Makefile for XfreeCD
      3 # Copyright 1998 by Brian C. Lane
      4 #
      5 ifeq ($(strip $(CC)),)
      6   CC = gcc
      7 else
      8   CC:=${CC}
      9 endif
     10 
     11 VERSION = 0.7.8
     12 CFLAGS = -O2 -Wall -pipe `gtk-config --cflags` -DVERSION=\"$(VERSION)\"
     13 LDFLAGS = `gtk-config --libs`
     14 
     15 OBJS = xfreecd.o cd_control.o cddbd.o cddb.o child_sync.o xpm_button.o
     16 
     17 all:		xfreecd
     18 
     19 xfreecd:	$(OBJS)
     20 		$(CC) $(OBJS) -o xfreecd $(LDFLAGS)
     21 
     22 clean:
     23 	rm -f *.o *~ xfreecd xfreecd-$(VERSION).tar.gz core
     24 	rm -rf xfreecd-$(VERSION)
     25 	rm -f xfreecd-$(VERSION)-1.spec
     26 	rm -f xfreecd-$(VERSION).lsm
     27 
     28 # Build the tarball
     29 dist:	xfreecd
     30 #	gpg --detach-sig xfreecd
     31 	rm -rf xfreecd-$(VERSION)
     32 	mkdir xfreecd-$(VERSION)
     33 	mkdir xfreecd-$(VERSION)/bitmaps
     34 	cp bitmaps/* xfreecd-$(VERSION)/bitmaps
     35 	cp {Makefile,*.c,*.h,xfreecd,README,HISTORY,COPYING,xfreecd.xpm,xfreecd.gif,xfreecd.wmconfig,xfreecd.spec,xfreecd.lsm,xfreecd.sig} xfreecd-$(VERSION)/
     36 	tar cvzf xfreecd-$(VERSION).tar.gz xfreecd-$(VERSION)/*
     37 	ln -s xfreecd.lsm xfreecd-$(VERSION).lsm
     38 
     39 # Build RedHat binary and source RPMs
     40 rpm:	dist
     41 	cp xfreecd-$(VERSION).tar.gz /usr/src/redhat/SOURCES
     42 	cp xfreecd.gif /usr/src/redhat/SOURCES
     43 	rm -f xfreecd-$(VERSION)-1.spec
     44 	ln -s xfreecd.spec xfreecd-$(VERSION)-1.spec
     45 	rpm -ba -vv xfreecd-$(VERSION)-1.spec