File: Makefile

package info (click to toggle)
m2vrequantiser 1.1-3
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 328 kB
  • ctags: 1,408
  • sloc: ansic: 5,989; makefile: 45
file content (27 lines) | stat: -rw-r--r-- 683 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
PREFIX    ?= /usr/local
CC         = gcc
CFLAGS    += -funroll-loops -frename-registers
CFLAGS    += -D_LARGEFILE_SOURCE -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_REENTRANT
CFLAGS    += -Wall
OBJECTS    = main.o
LDFLAGS   += -s
LOADLIBES += -lm
INSTALL   ?= install

all:	M2VRequantiser

M2VRequantiser : $(OBJECTS)
	$(CC) $(CFLAGS) $(OBJECTS) $(LDFLAGS) $(LOADLIBES) -o M2VRequantiser

%.o : %.c
	$(CC) $(CPPFLAGS) $(CFLAGS) -c $<

install:	all
	$(INSTALL) -d $(DESTDIR)$(PREFIX)/bin
	$(INSTALL) -m 755 M2VRequantiser $(DESTDIR)$(PREFIX)/bin
	
uninstall:
	rm -f $(DESTDIR)$(PREFIX)/bin/M2VRequantiser

clean:
	rm -f M2VRequantiser *.o *~ core