File: Makefile

package info (click to toggle)
mp3gain 1.4.6-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 532 kB
  • ctags: 735
  • sloc: ansic: 7,583; makefile: 75
file content (58 lines) | stat: -rw-r--r-- 1,142 bytes parent folder | download | duplicates (2)
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
58
#
# Quick 'n dirty unix Makefile
#
# Mike Oliphant (oliphant@gtk.org)
#

CC=     gcc

CFLAGS= -Wall -O3 -DHAVE_MEMCPY

MAN_PATH=$(DESTDIR)/usr/share/man/man1

ifneq ($(OSTYPE),beos)
INSTALL_PATH= $(DESTDIR)/usr/bin
else
INSTALL_PATH= $(HOME)/config/bin
endif

# BeOS doesn't have libm (it's all in libroot)
ifneq ($(OSTYPE),beos)
LIBS= -lm
else
# BeOS: without this it wants to use bcopy() :^)
CFLAGS+= -DHAVE_MEMCPY
endif

OBJS=	mp3gain.o apetag.o gain_analysis.o rg_error.o \
	mpglibDBL/common.o mpglibDBL/dct64_i386.o \
	mpglibDBL/decode_i386.o mpglibDBL/interface.o \
	mpglibDBL/layer3.o mpglibDBL/tabinit.o

all: mp3gain mp3gain.1.gz

# when reenabling this, don't forget build-depends docbook-to-man
#
#mp3gain.1: mp3gain.sgml
#	docbook-to-man $< > $@

mp3gain.1.gz: mp3gain.1
	gzip -c -9 $< > $@

mp3gain: $(OBJS)
	$(CC) -o mp3gain $(OBJS) $(LIBS)
ifeq ($(OSTYPE),beos)
	mimeset -f mp3gain
endif

install:
	chown root:root mp3gain mp3gain.1.gz
	cp -p mp3gain "$(INSTALL_PATH)"
	cp -p mp3gain.1.gz "$(MAN_PATH)"
ifeq ($(OSTYPE),beos)
	mimeset -f "$(INSTALL_PATH)/mp3gain"
endif

clean: 
	-rm -rf mp3gain mp3gain.1.gz *.o mpglibDBL/*.o