File: Makefile

package info (click to toggle)
puredata 0.55.2%2Bds-1~bpo12%2B1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-backports
  • size: 20,336 kB
  • sloc: ansic: 118,788; tcl: 10,221; cpp: 9,327; makefile: 1,632; sh: 1,476; python: 152; xml: 98; awk: 13
file content (27 lines) | stat: -rw-r--r-- 449 bytes parent folder | download | duplicates (4)
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
# This is a makefile to build "test_libpd".
SRC_FILES = test_libpd.c
TARGET = test_libpd

.PHONY: all
all: $(TARGET)

# force static linking? make STATIC=true
ifeq ($(STATIC), true)
LDFLAGS += -l:libpd.a -lm
else # copy libpd to here by default
LDFLAGS += -lpd
endif

LDFLAGS += -lc
CPPFLAGS += -I/usr/include/pd

##### target

$(TARGET): ${SRC_FILES:.c=.o}
	$(CC) -o $@ $^ $(LDFLAGS) $(LIBS)

##### clean

.PHONY: clean
clean:
	rm -f $(TARGET) *.o