Obsolete
/
libipc-old
Archived
3
0
Fork 0

Version bump: 0.5.1.

more_to_read
Philippe PITTOLI 2020-01-28 13:42:49 +01:00
parent 8457cc3690
commit 22f3a2234a
2 changed files with 74 additions and 19 deletions

View File

@ -1,5 +1,5 @@
PACKAGE = 'ipc'
VERSION = '0.4.0'
VERSION = '0.5.1'
PREFIX := /usr/local
BINDIR := $(PREFIX)/bin
@ -16,7 +16,7 @@ LDFLAGS :=
Q := @
all: libipc src/ipc.h man/libipc.7
all: libipc src/ipc.h src/usocket.h src/message.h src/fs.h src/utils.h man/libipc.7
@:
libipc: libipc.so libipc.a
@ -39,6 +39,54 @@ src/ipc.h.uninstall:
@echo ' RM > $(INCLUDEDIR)/ipc.h'
$(Q)rm -f '$(DESTDIR)$(INCLUDEDIR)/ipc.h'
src/usocket.h.install: src/usocket.h src
@echo ' IN > $(INCLUDEDIR)/usocket.h'
$(Q)mkdir -p '$(DESTDIR)$(INCLUDEDIR)'
$(Q)install -m0644 src/usocket.h $(DESTDIR)$(INCLUDEDIR)/usocket.h
src/usocket.h.clean: src/usocket.h
$(Q):
src/usocket.h.uninstall:
@echo ' RM > $(INCLUDEDIR)/usocket.h'
$(Q)rm -f '$(DESTDIR)$(INCLUDEDIR)/usocket.h'
src/message.h.install: src/message.h src
@echo ' IN > $(INCLUDEDIR)/message.h'
$(Q)mkdir -p '$(DESTDIR)$(INCLUDEDIR)'
$(Q)install -m0644 src/message.h $(DESTDIR)$(INCLUDEDIR)/message.h
src/message.h.clean: src/message.h
$(Q):
src/message.h.uninstall:
@echo ' RM > $(INCLUDEDIR)/message.h'
$(Q)rm -f '$(DESTDIR)$(INCLUDEDIR)/message.h'
src/fs.h.install: src/fs.h src
@echo ' IN > $(INCLUDEDIR)/fs.h'
$(Q)mkdir -p '$(DESTDIR)$(INCLUDEDIR)'
$(Q)install -m0644 src/fs.h $(DESTDIR)$(INCLUDEDIR)/fs.h
src/fs.h.clean: src/fs.h
$(Q):
src/fs.h.uninstall:
@echo ' RM > $(INCLUDEDIR)/fs.h'
$(Q)rm -f '$(DESTDIR)$(INCLUDEDIR)/fs.h'
src/utils.h.install: src/utils.h src
@echo ' IN > $(INCLUDEDIR)/utils.h'
$(Q)mkdir -p '$(DESTDIR)$(INCLUDEDIR)'
$(Q)install -m0644 src/utils.h $(DESTDIR)$(INCLUDEDIR)/utils.h
src/utils.h.clean: src/utils.h
$(Q):
src/utils.h.uninstall:
@echo ' RM > $(INCLUDEDIR)/utils.h'
$(Q)rm -f '$(DESTDIR)$(INCLUDEDIR)/utils.h'
man/libipc.7: man/libipc.7.scd man
@echo ' MAN > man/libipc.7'
$(Q)scdoc < 'man/libipc.7.scd' > 'man/libipc.7'
@ -62,25 +110,25 @@ libipc.so: src/communication.o src/error.o src/fs.o src/message.o src/network.o
$(Q)$(CC) -o libipc.so -shared $(LDFLAGS) src/communication.o src/error.o src/fs.o src/message.o src/network.o src/print.o src/usocket.o src/utils.o
libipc.so.install: libipc.so
@echo ' IN > $(LIBDIR)/libipc.so.0.4.0'
@echo ' IN > $(LIBDIR)/libipc.so.0.5.1'
$(Q)mkdir -p '$(DESTDIR)$(LIBDIR)'
$(Q)install -m0755 libipc.so $(DESTDIR)$(LIBDIR)/libipc.so.0.4.0
@echo ' LN > $(LIBDIR)/libipc.so.0.4'
$(Q)ln -sf '$(LIBDIR)/libipc.so.0.4.0' '$(DESTDIR)/$(LIBDIR)/libipc.so.0.4'
$(Q)install -m0755 libipc.so $(DESTDIR)$(LIBDIR)/libipc.so.0.5.1
@echo ' LN > $(LIBDIR)/libipc.so.0.5'
$(Q)ln -sf '$(LIBDIR)/libipc.so.0.5.1' '$(DESTDIR)/$(LIBDIR)/libipc.so.0.5'
@echo ' LN > $(LIBDIR)/libipc.so.0'
$(Q)ln -sf '$(LIBDIR)/libipc.so.0.4.0' '$(DESTDIR)/$(LIBDIR)/libipc.so.0'
$(Q)ln -sf '$(LIBDIR)/libipc.so.0.5.1' '$(DESTDIR)/$(LIBDIR)/libipc.so.0'
@echo ' LN > $(LIBDIR)/libipc.so'
$(Q)ln -sf '$(LIBDIR)/libipc.so.0.4.0' '$(DESTDIR)/$(LIBDIR)/libipc.so'
$(Q)ln -sf '$(LIBDIR)/libipc.so.0.5.1' '$(DESTDIR)/$(LIBDIR)/libipc.so'
libipc.so.clean:
@echo ' RM > libipc.so'
$(Q)rm -f libipc.so
libipc.so.uninstall:
@echo ' RM > $(LIBDIR)/libipc.so.0.4.0'
$(Q)rm -f '$(DESTDIR)$(LIBDIR)/libipc.so.0.4.0'
@echo ' RM > $(LIBDIR)/libipc.so.0.4'
$(Q)rm -f '$(DESTDIR)$(LIBDIR)/libipc.so.0.4'
@echo ' RM > $(LIBDIR)/libipc.so.0.5.1'
$(Q)rm -f '$(DESTDIR)$(LIBDIR)/libipc.so.0.5.1'
@echo ' RM > $(LIBDIR)/libipc.so.0.5'
$(Q)rm -f '$(DESTDIR)$(LIBDIR)/libipc.so.0.5'
@echo ' RM > $(LIBDIR)/libipc.so.0'
$(Q)rm -f '$(DESTDIR)$(LIBDIR)/libipc.so.0'
@echo ' RM > $(LIBDIR)/libipc.so'
@ -221,13 +269,13 @@ $(DESTDIR)$(INCLUDEDIR):
$(DESTDIR)$(MANDIR):
@echo ' DIR > $(MANDIR)'
$(Q)mkdir -p $(DESTDIR)$(MANDIR)
install: libipc.install src/ipc.h.install man/libipc.7.install libipc.so.install libipc.a.install src/communication.o.install src/error.o.install src/fs.o.install src/message.o.install src/network.o.install src/print.o.install src/usocket.o.install src/utils.o.install src/communication.o.install src/error.o.install src/fs.o.install src/message.o.install src/network.o.install src/print.o.install src/usocket.o.install src/utils.o.install
install: libipc.install src/ipc.h.install src/usocket.h.install src/message.h.install src/fs.h.install src/utils.h.install man/libipc.7.install libipc.so.install libipc.a.install src/communication.o.install src/error.o.install src/fs.o.install src/message.o.install src/network.o.install src/print.o.install src/usocket.o.install src/utils.o.install src/communication.o.install src/error.o.install src/fs.o.install src/message.o.install src/network.o.install src/print.o.install src/usocket.o.install src/utils.o.install
@:
uninstall: libipc.uninstall src/ipc.h.uninstall man/libipc.7.uninstall libipc.so.uninstall libipc.a.uninstall src/communication.o.uninstall src/error.o.uninstall src/fs.o.uninstall src/message.o.uninstall src/network.o.uninstall src/print.o.uninstall src/usocket.o.uninstall src/utils.o.uninstall src/communication.o.uninstall src/error.o.uninstall src/fs.o.uninstall src/message.o.uninstall src/network.o.uninstall src/print.o.uninstall src/usocket.o.uninstall src/utils.o.uninstall
uninstall: libipc.uninstall src/ipc.h.uninstall src/usocket.h.uninstall src/message.h.uninstall src/fs.h.uninstall src/utils.h.uninstall man/libipc.7.uninstall libipc.so.uninstall libipc.a.uninstall src/communication.o.uninstall src/error.o.uninstall src/fs.o.uninstall src/message.o.uninstall src/network.o.uninstall src/print.o.uninstall src/usocket.o.uninstall src/utils.o.uninstall src/communication.o.uninstall src/error.o.uninstall src/fs.o.uninstall src/message.o.uninstall src/network.o.uninstall src/print.o.uninstall src/usocket.o.uninstall src/utils.o.uninstall
@:
clean: libipc.clean src/ipc.h.clean man/libipc.7.clean libipc.so.clean libipc.a.clean src/communication.o.clean src/error.o.clean src/fs.o.clean src/message.o.clean src/network.o.clean src/print.o.clean src/usocket.o.clean src/utils.o.clean src/communication.o.clean src/error.o.clean src/fs.o.clean src/message.o.clean src/network.o.clean src/print.o.clean src/usocket.o.clean src/utils.o.clean
clean: libipc.clean src/ipc.h.clean src/usocket.h.clean src/message.h.clean src/fs.h.clean src/utils.h.clean man/libipc.7.clean libipc.so.clean libipc.a.clean src/communication.o.clean src/error.o.clean src/fs.o.clean src/message.o.clean src/network.o.clean src/print.o.clean src/usocket.o.clean src/utils.o.clean src/communication.o.clean src/error.o.clean src/fs.o.clean src/message.o.clean src/network.o.clean src/print.o.clean src/usocket.o.clean src/utils.o.clean
distclean: clean
dist: dist-gz dist-xz dist-bz2
$(Q)rm -- $(PACKAGE)-$(VERSION)
@ -300,7 +348,7 @@ $(PACKAGE)-$(VERSION).tar.bz2: distdir
$(PACKAGE)-$(VERSION)/src/utils.h
help:
@echo ' :: ipc-0.4.0'
@echo ' :: ipc-0.5.1'
@echo ''
@echo 'Generic targets:'
@echo ' - help  Prints this help message.'
@ -327,6 +375,10 @@ help:
@echo 'Project targets: '
@echo ' - libipc  library'
@echo ' - src/ipc.h  header'
@echo ' - src/usocket.h  header'
@echo ' - src/message.h  header'
@echo ' - src/fs.h  header'
@echo ' - src/utils.h  header'
@echo ' - man/libipc.7  scdocman'
@echo ''
@echo 'Makefile options:'

View File

@ -1,16 +1,19 @@
package=ipc
version=0.4.0
version=0.5.1
variables+=(CFLAGS "-Wall -Wextra -g")
targets=(libipc src/ipc.h man/libipc.7)
targets=(libipc src/ipc.h src/usocket.h src/message.h src/fs.h src/utils.h man/libipc.7)
type[libipc]=library
sources[libipc]="$(ls src/*.c)"
cflags[libipc]="-std=c11"
type[src/ipc.h]=header
type[src/usocket.h]=header
type[src/message.h]=header
type[src/fs.h]=header
type[src/utils.h]=header
type[man/libipc.7]=scdocman