blob: 51828cab270591be597bbac9911ab4aabccf25c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
top_srcdir = ../../../../src/libs/zziplib
srcdir = $(top_srcdir)/zzip
CC = gcc
AR = ar cru
RANLIB = ranlib
OBJECTS =dir.o err.o fetch.o file.o info.o memdisk.o mmapped.o \
plugin.o stat.o write.o zip.o
_CFLAGS = -DHAVE_CONFIG_H -I.. -I../../../../src/libs/zziplib -I../../../../src/libs/zlib -Wall
XCFLAGS = $(_CFLAGS)
all: $(OBJECTS)
$(AR) libzzip.a $(OBJECTS)
$(RANLIB) libzzip.a
%.o: $(srcdir)/%.c
$(CC) $(CFLAGS) $(XCFLAGS) -c $< -o $@
|