Skip to content

Commit

Permalink
libcastle from acunutils.hg:d724e196c846
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Wilkie committed May 10, 2011
0 parents commit ac357d9
Show file tree
Hide file tree
Showing 12 changed files with 4,424 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Makefile
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*
420 changes: 420 additions & 0 deletions castle.h

Large diffs are not rendered by default.

Loading

0 comments on commit ac357d9

Please sign in to comment.