31 lines
1.3 KiB
Plaintext
31 lines
1.3 KiB
Plaintext
--- Makefile.orig 2018-12-23 19:13:28 UTC
|
|
+++ Makefile
|
|
@@ -21,7 +21,7 @@ cc-option = $(shell if $(CC) $(1) -c -x c /dev/null -o
|
|
1>&2 2>/dev/null; then echo $(1); fi)
|
|
|
|
override CFLAGS := \
|
|
- $(CFLAGS) -O2 -fomit-frame-pointer -std=c99 -I. -Icommon \
|
|
+ $(CFLAGS) -std=c99 -I. -Icommon \
|
|
-Wall -Wundef \
|
|
$(call cc-option,-Wpedantic) \
|
|
$(call cc-option,-Wdeclaration-after-statement) \
|
|
@@ -227,12 +227,12 @@ DEFAULT_TARGETS += gunzip$(PROG_SUFFIX)
|
|
all:$(DEFAULT_TARGETS)
|
|
|
|
install:all
|
|
- install -Dm644 -t $(DESTDIR)/usr/lib $(STATIC_LIB)
|
|
- install -Dm755 -t $(DESTDIR)/usr/lib $(SHARED_LIB)
|
|
- ln -sf $(SHARED_LIB) $(DESTDIR)/usr/lib/libdeflate.so
|
|
- install -Dm644 -t $(DESTDIR)/usr/include libdeflate.h
|
|
- install -Dm755 gzip $(DESTDIR)/usr/bin/libdeflate-gzip
|
|
- ln -f $(DESTDIR)/usr/bin/libdeflate-gzip $(DESTDIR)/usr/bin/libdeflate-gunzip
|
|
+ install -Dm644 $(STATIC_LIB) $(DESTDIR)$(PREFIX)/lib
|
|
+ install -s -Dm755 $(SHARED_LIB) $(DESTDIR)$(PREFIX)/lib
|
|
+ ln -sf $(SHARED_LIB) $(DESTDIR)$(PREFIX)/lib/libdeflate.so
|
|
+ install -Dm644 libdeflate.h $(DESTDIR)$(PREFIX)/include
|
|
+ install -s -Dm755 gzip $(DESTDIR)$(PREFIX)/bin/libdeflate-gzip
|
|
+ ln -f $(DESTDIR)$(PREFIX)/bin/libdeflate-gzip $(DESTDIR)$(PREFIX)/bin/libdeflate-gunzip
|
|
|
|
uninstall:
|
|
rm -f $(DESTDIR)/usr/lib/$(STATIC_LIB) \
|