File: Makefile

package info (click to toggle)
libisal 2.31.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,776 kB
  • sloc: asm: 44,577; ansic: 42,149; sh: 915; makefile: 622; pascal: 345
file content (24 lines) | stat: -rw-r--r-- 505 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
# Build examples from installed lib

include Makefile.am

incdir = $(shell pkg-config --variable=includedir libisal)

CFLAGS += -include $(incdir)/isa-l.h # Add standard header
CFLAGS += -I $(incdir)/isa-l # Add path to remove error
LDFLAGS = $(shell pkg-config --libs libisal)

progs = $(notdir $(examples))

ex: $(progs)
run: $(addsuffix .run,$(progs))

$(progs): % : %.c
	$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)

$(addsuffix .run,$(progs)): %.run : %
	./$<
	@echo Completed run: $<

clean:
	$(RM) $(progs)