File: Makefile

package info (click to toggle)
checkmp3 1.98-6
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 180 kB
  • ctags: 136
  • sloc: ansic: 1,212; makefile: 60
file content (37 lines) | stat: -rw-r--r-- 849 bytes parent folder | download
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
# Makefile for mp3_check

CC ?= gcc
LOCALBASE ?= debian/checkmp3/usr
CFLAGS += -Wall
OPT_FLAGS = -L${LOCALBASE}/lib 
OBJS = 	mp3_check.o \
	mp3_check_misc.o

all: trim 

clean:
	rm -f mp3_check *.o core

norm: 	$(OBJS) 
	$(CC) -g $(CFLAGS) $(OBJS) -o mp3_check

trim: 	$(OBJS)
	$(CC) $(CFLAGS) $(OPT_FLAGS) $(OBJS) -o mp3_check
	strip mp3_check
	cat MILESTONE.INTRO

install: all
	install -m 755 -o root -g root mp3_check ${LOCALBASE}/bin

# The FreeBSD Makefile options need a little work, but this will work for now.
freebsd:	mp3_check.c mp3_check.h mp3_check_misc.c	
		$(CC) $(CFLAGS) -I${LOCALBASE}/include $(OPT_FLAGS) -lgnugetopt -o mp3_check mp3_check.c mp3_check_misc.c
		strip mp3_check

freebsd_install:	freebsd
			install -m 755 -o root -g wheel mp3_check ${LOCALBASE}/bin

mp3_check.o:		mp3_check.c
mp3_check_misc.o: 	mp3_check_misc.c