examples/crc/Makefile
raw| 1 | # Build examples from installed lib |
| 2 | |
| 3 | examples = crc_combine_example |
| 4 | |
| 5 | CFLAGS = -Wall -O2 |
| 6 | LDFLAGS = $(shell pkg-config --libs libisal) |
| 7 | |
| 8 | progs = $(notdir $(examples)) |
| 9 | |
| 10 | ex: $(progs) |
| 11 | run: $(addsuffix .run,$(progs)) |
| 12 | |
| 13 | $(progs): % : %.c |
| 14 | $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) |
| 15 | |
| 16 | $(addsuffix .run,$(progs)): %.run : % |
| 17 | ./$< |
| 18 | @echo Completed run: $< |
| 19 | |
| 20 | clean: |
| 21 | $(RM) $(progs) |