File: Makefile

package info (click to toggle)
libsndfile 1.2.2-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 5,120 kB
  • sloc: ansic: 55,350; cpp: 1,108; python: 791; makefile: 539; sh: 539; cs: 122
file content (13 lines) | stat: -rw-r--r-- 223 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
SRC=$(wildcard *.c)
APPS=$(SRC:%.c=%)
SNDLIBS=$(LIBS) $(shell pkg-config --cflags --libs sndfile) -lm

.PHONY: default clean

default: $(APPS)

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

clean:
	rm -f $(APPS)