File: Makefile

package info (click to toggle)
lv2file 0.95-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 216 kB
  • sloc: ansic: 1,639; sh: 30; makefile: 24
file content (24 lines) | stat: -rw-r--r-- 657 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
PKG_CONFIG?= pkg-config
CFLAGS += $(CPPFLAGS)
CFLAGS += -O3 -Wall -Wextra --std=c99 `$(PKG_CONFIG) --cflags argtable2 sndfile lilv-0`
LDLIBS = `$(PKG_CONFIG) --libs argtable2 sndfile lilv-0` -lm
BINDIR = $(DESTDIR)/usr/bin
INSTALL_PROGRAM = install

all: lv2file

lv2file.o: lv2file.c
	$(CC) -c $(CFLAGS) -o lv2file.o lv2file.c
lv2file: lv2file.o
	$(CC) $(LDFLAGS) lv2file.o -o lv2file $(LDLIBS)
tarball: lv2file
	cd ..;tar -czvf lv2file.tar.gz lv2file/*;
.PHONY: install uninstall clean

clean:
	rm -f lv2file.o lv2file
install: all
	$(INSTALL_PROGRAM) -d $(BINDIR) $(DESTDIR)
	$(INSTALL_PROGRAM) lv2file $(BINDIR)/lv2file
uninstall:
	rm $(BINDIR)/lv2file