summaryrefslogtreecommitdiffstats
path: root/libsparse/Makefile
blob: 2fd4c30006a2de6764a468de3f98016b0b779695 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
CC ?= gcc
AR ?= ar

CFLAGS += -Iinclude

OBJ := \
		backed_block.o \
		output_file.o \
		sparse.o \
		sparse_crc32.o \
		sparse_err.o \
		sparse_read.o

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

libsparse.a: $(OBJ)
		$(AR) rcs $@ $^

clean:
		rm -f $(OBJ) libsparse.a