-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes in Makefile for the package review process in Fedora
- Loading branch information
1 parent
956dee5
commit 73ec3c0
Showing
1 changed file
with
14 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,19 @@ | ||
CFLAGS=-std=c99 -pedantic -Wall -Wextra -fPIC -g -O0 | ||
override CFLAGS += -std=c99 -pedantic -Wall -Wextra -fPIC -g -O0 | ||
override LDFLAGS += -lz -lbz2 -llzma -lrpm -lrpmio | ||
|
||
all: libdrpm.so | ||
all: libdrpm.so.0.0.0 | ||
|
||
libdrpm.so: drpm.o drpm_read.o drpm_utils.o drpm_compstrm.o | ||
$(CC) $^ -o $@ -shared -Wl,-soname,libdrpm.so -lz -lbz2 -llzma -lrpm -lrpmio | ||
libdrpm.so.0.0.0: drpm.o drpm_read.o drpm_utils.o drpm_compstrm.o | ||
$(CC) $^ -o $@ -shared -Wl,-soname,libdrpm.so.0 $(LDFLAGS) | ||
|
||
install: | ||
mkdir -p $(DESTDIR)$(libdir) $(DESTDIR)$(includedir) | ||
install -m 755 libdrpm.so.0.0.0 $(DESTDIR)$(libdir)/ | ||
install -m 644 drpm.h $(DESTDIR)$(includedir)/ | ||
ln -s $(DESTDIR)$(libdir)/libdrpm.so.0.0.0 $(DESTDIR)$(libdir)/libdrpm.so.0 | ||
ln -s $(DESTDIR)$(libdir)/libdrpm.so.0 $(DESTDIR)$(libdir)/libdrpm.so | ||
|
||
.PHONY: install | ||
|
||
clean: | ||
rm -f *.o |