blob: 0380cd25c4d70bc7cf4889ee1f2d90d0e8c9018c (
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 = ../../../../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../../../../libs/zziplib -I../../../../libs/zlib
XCFLAGS = $(_CFLAGS)
all: $(OBJECTS)
$(AR) libzzip.a $(OBJECTS)
$(RANLIB) libzzip.a
%.o: $(srcdir)/%.c
$(CC) $(CFLAGS) $(XCFLAGS) -c $< -o $@
|