forked from fohr/libcastle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libcastle from acunutils.hg:d724e196c846
- Loading branch information
Tom Wilkie
committed
May 10, 2011
0 parents
commit ac357d9
Showing
12 changed files
with
4,424 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
CFLAGS=-fPIC -DPIC -std=gnu99 -ggdb -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wall -Wextra -Wshadow -Werror -O2 | ||
LIB_DESTDIR=$(DESTDIR)/usr/lib64 | ||
INC_DESTDIR=$(DESTDIR)/usr/include/castle | ||
|
||
SONAME=libcastle.so.1 | ||
|
||
all: $(SONAME) | ||
|
||
%.o: %.c *.h | ||
gcc -pthread -c -o $@ $< $(CFLAGS) | ||
|
||
$(SONAME): castle_front.o castle_ioctl.o castle_convenience.o castle_print.o castle_utils.o | ||
gcc -pthread -shared -Wl,-Bsymbolic -Wl,-soname,$(SONAME) -Wl,--warn-common -Wl,--fatal-warnings -Wl,--version-script=versions -o $@ $^ $(CFLAGS) | ||
|
||
install: $(SONAME) | ||
mkdir -p $(LIB_DESTDIR) | ||
install $(SONAME) $(LIB_DESTDIR) | ||
ln -sf $(SONAME) $(LIB_DESTDIR)/libcastle.so | ||
if [ -z "$(DONT_RUN_LDCONFIG)" ]; then \ | ||
ldconfig; \ | ||
fi | ||
|
||
mkdir -p $(INC_DESTDIR) | ||
install castle_public.h $(INC_DESTDIR) | ||
install castle.h $(INC_DESTDIR) | ||
|
||
clean: | ||
rm -rf *.o *.so* |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.