Only include sys/sysmacros.h on glibc, it is not portable
[project/make_ext4fs.git] / libsparse / Makefile
1 CC ?= gcc
2 AR ?= ar
3
4 CFLAGS += -Iinclude
5
6 OBJ := \
7                 backed_block.o \
8                 output_file.o \
9                 sparse.o \
10                 sparse_crc32.o \
11                 sparse_err.o \
12                 sparse_read.o
13
14 %.o: %.c
15                 $(CC) $(CFLAGS) -c -o $@ $^
16
17 libsparse.a: $(OBJ)
18                 $(AR) rcs $@ $^
19
20 clean:
21                 rm -f $(OBJ) libsparse.a