Sha256: b44b04f8047d5f85ef0c20227ec09d432fc7bb71a1f759f3c0c42b27ec69bc38

Contents?: true

Size: 965 Bytes

Versions: 4

Compression:

Stored size: 965 Bytes

Contents

LIBARCHIVE_WRAPPER_OBJS = \
archive_read_support_compression.o \
archive_read_support_format.o \
archive_write_open_rb_str.o \
archive_write_set_compression.o \
libarchive.o \
libarchive_archive.o \
libarchive_entry.o \
libarchive_reader.o \
libarchive_writer.o

arch:=$(shell uname)
ifeq ($(arch), Darwin)
	EXT:=bundle
else
	EXT:=so
endif

.c.o:
	gcc $(CFLAGS) -I. -I../../libarchive-2.8.4/libarchive -DLIBARCHIVE_STATIC -DHAVE_CONFIG_H -DHAVE_ARCHIVE_H -DHAVE_ARCHIVE_ENTRY_H -O3 -g -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -c -DPIC $<

all: libarchive_ruby.$(EXT)

# For Mac OS...
libarchive_ruby.bundle: $(LIBARCHIVE_WRAPPER_OBJS)
	gcc -bundle -o libarchive_ruby.bundle $^ $(LDFLAGS) -lruby -lz

libarchive_ruby.so: $(LIBARCHIVE_WRAPPER_OBJS)
	gcc -shared -s -o libarchive_ruby.so $^ $(LDFLAGS)

clean:
	rm -f *.o libarchive_ruby.so

veryclean: clean
	rm -f Makefile config.h

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
libarchive-static-1.0.6 ext/libarchive-static-wrapper-makefile
libarchive-static-1.0.5 ext/libarchive-static-wrapper-makefile
libarchive-static-1.0.4 ext/libarchive-static-wrapper-makefile
libarchive-static-1.0.3 ext/libarchive-static-wrapper-makefile