2018-11-20 10:44:49 +01:00
|
|
|
|
PACKAGE = 'ipc'
|
2020-01-28 13:42:49 +01:00
|
|
|
|
VERSION = '0.5.1'
|
2018-11-20 10:44:49 +01:00
|
|
|
|
|
|
|
|
|
PREFIX := /usr/local
|
|
|
|
|
BINDIR := $(PREFIX)/bin
|
|
|
|
|
LIBDIR := $(PREFIX)/lib
|
|
|
|
|
SHAREDIR := $(PREFIX)/share
|
|
|
|
|
INCLUDEDIR := $(PREFIX)/include
|
|
|
|
|
MANDIR := $(SHAREDIR)/man
|
2019-07-27 15:46:04 +02:00
|
|
|
|
CFLAGS := -Wall -Wextra -g
|
2019-11-14 20:44:18 +01:00
|
|
|
|
CC := cc
|
|
|
|
|
CXX := c++
|
|
|
|
|
LD := ${CC}
|
|
|
|
|
CXXFLAGS :=
|
|
|
|
|
LDFLAGS :=
|
2018-11-20 10:44:49 +01:00
|
|
|
|
|
|
|
|
|
Q := @
|
|
|
|
|
|
2020-01-28 13:42:49 +01:00
|
|
|
|
all: libipc src/ipc.h src/usocket.h src/message.h src/fs.h src/utils.h man/libipc.7
|
2018-11-20 10:44:49 +01:00
|
|
|
|
@:
|
|
|
|
|
|
2019-07-27 15:46:04 +02:00
|
|
|
|
libipc: libipc.so libipc.a
|
2018-11-20 10:44:49 +01:00
|
|
|
|
@:
|
|
|
|
|
libipc.install: libipc.so.install libipc.a.install
|
|
|
|
|
|
|
|
|
|
libipc.clean: libipc.so.clean libipc.a.clean
|
|
|
|
|
|
|
|
|
|
libipc.uninstall: libipc.so.uninstall libipc.a.uninstall
|
|
|
|
|
|
2019-07-27 15:46:04 +02:00
|
|
|
|
src/ipc.h.install: src/ipc.h src
|
2019-06-12 15:02:43 +02:00
|
|
|
|
@echo '[01;31m IN > [01;37m$(INCLUDEDIR)/ipc.h[00m'
|
2018-11-20 10:44:49 +01:00
|
|
|
|
$(Q)mkdir -p '$(DESTDIR)$(INCLUDEDIR)'
|
|
|
|
|
$(Q)install -m0644 src/ipc.h $(DESTDIR)$(INCLUDEDIR)/ipc.h
|
|
|
|
|
|
|
|
|
|
src/ipc.h.clean: src/ipc.h
|
|
|
|
|
$(Q):
|
|
|
|
|
|
|
|
|
|
src/ipc.h.uninstall:
|
2019-06-12 15:02:43 +02:00
|
|
|
|
@echo '[01;37m RM > [01;37m$(INCLUDEDIR)/ipc.h[00m'
|
2018-11-20 10:44:49 +01:00
|
|
|
|
$(Q)rm -f '$(DESTDIR)$(INCLUDEDIR)/ipc.h'
|
|
|
|
|
|
2020-01-28 13:42:49 +01:00
|
|
|
|
src/usocket.h.install: src/usocket.h src
|
|
|
|
|
@echo '[01;31m IN > [01;37m$(INCLUDEDIR)/usocket.h[00m'
|
|
|
|
|
$(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 '[01;37m RM > [01;37m$(INCLUDEDIR)/usocket.h[00m'
|
|
|
|
|
$(Q)rm -f '$(DESTDIR)$(INCLUDEDIR)/usocket.h'
|
|
|
|
|
|
|
|
|
|
src/message.h.install: src/message.h src
|
|
|
|
|
@echo '[01;31m IN > [01;37m$(INCLUDEDIR)/message.h[00m'
|
|
|
|
|
$(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 '[01;37m RM > [01;37m$(INCLUDEDIR)/message.h[00m'
|
|
|
|
|
$(Q)rm -f '$(DESTDIR)$(INCLUDEDIR)/message.h'
|
|
|
|
|
|
|
|
|
|
src/fs.h.install: src/fs.h src
|
|
|
|
|
@echo '[01;31m IN > [01;37m$(INCLUDEDIR)/fs.h[00m'
|
|
|
|
|
$(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 '[01;37m RM > [01;37m$(INCLUDEDIR)/fs.h[00m'
|
|
|
|
|
$(Q)rm -f '$(DESTDIR)$(INCLUDEDIR)/fs.h'
|
|
|
|
|
|
|
|
|
|
src/utils.h.install: src/utils.h src
|
|
|
|
|
@echo '[01;31m IN > [01;37m$(INCLUDEDIR)/utils.h[00m'
|
|
|
|
|
$(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 '[01;37m RM > [01;37m$(INCLUDEDIR)/utils.h[00m'
|
|
|
|
|
$(Q)rm -f '$(DESTDIR)$(INCLUDEDIR)/utils.h'
|
|
|
|
|
|
2019-08-28 12:41:24 +02:00
|
|
|
|
man/libipc.7: man/libipc.7.scd man
|
2019-11-14 20:44:18 +01:00
|
|
|
|
@echo '[01;33m MAN > [01;37mman/libipc.7[00m'
|
2019-08-28 12:41:24 +02:00
|
|
|
|
$(Q)scdoc < 'man/libipc.7.scd' > 'man/libipc.7'
|
2018-11-20 10:44:49 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
man/libipc.7.install: man/libipc.7
|
2019-06-12 15:02:43 +02:00
|
|
|
|
@echo '[01;31m IN > [01;37m$(MANDIR)/man7/libipc.7[00m'
|
2018-11-20 10:44:49 +01:00
|
|
|
|
$(Q)mkdir -p '$(DESTDIR)$(MANDIR)/man7'
|
|
|
|
|
$(Q)install -m0644 man/libipc.7 $(DESTDIR)$(MANDIR)/man7/libipc.7
|
|
|
|
|
|
|
|
|
|
man/libipc.7.clean:
|
2019-06-12 15:02:43 +02:00
|
|
|
|
@echo '[01;37m RM > [01;37mman/libipc.7[00m'
|
2018-11-20 10:44:49 +01:00
|
|
|
|
$(Q)rm -f man/libipc.7
|
|
|
|
|
|
|
|
|
|
man/libipc.7.uninstall:
|
2019-06-12 15:02:43 +02:00
|
|
|
|
@echo '[01;37m RM > [01;37m$(MANDIR)/man7/libipc.7[00m'
|
2018-11-20 10:44:49 +01:00
|
|
|
|
$(Q)rm -f '$(DESTDIR)$(MANDIR)/man7/libipc.7'
|
|
|
|
|
|
2020-01-01 12:11:34 +01:00
|
|
|
|
libipc.so: src/communication.o src/error.o src/fs.o src/message.o src/network.o src/print.o src/usocket.o src/utils.o
|
2019-06-12 15:02:43 +02:00
|
|
|
|
@echo '[01;32m LD > [01;37mlibipc.so[00m'
|
2020-01-01 12:11:34 +01:00
|
|
|
|
$(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
|
2018-11-20 10:44:49 +01:00
|
|
|
|
|
|
|
|
|
libipc.so.install: libipc.so
|
2020-01-28 13:42:49 +01:00
|
|
|
|
@echo '[01;31m IN > [01;37m$(LIBDIR)/libipc.so.0.5.1[00m'
|
2018-11-20 10:44:49 +01:00
|
|
|
|
$(Q)mkdir -p '$(DESTDIR)$(LIBDIR)'
|
2020-01-28 13:42:49 +01:00
|
|
|
|
$(Q)install -m0755 libipc.so $(DESTDIR)$(LIBDIR)/libipc.so.0.5.1
|
|
|
|
|
@echo '[01;35m LN > [01;37m$(LIBDIR)/libipc.so.0.5[00m'
|
|
|
|
|
$(Q)ln -sf '$(LIBDIR)/libipc.so.0.5.1' '$(DESTDIR)/$(LIBDIR)/libipc.so.0.5'
|
2019-11-14 20:44:18 +01:00
|
|
|
|
@echo '[01;35m LN > [01;37m$(LIBDIR)/libipc.so.0[00m'
|
2020-01-28 13:42:49 +01:00
|
|
|
|
$(Q)ln -sf '$(LIBDIR)/libipc.so.0.5.1' '$(DESTDIR)/$(LIBDIR)/libipc.so.0'
|
2019-11-14 20:44:18 +01:00
|
|
|
|
@echo '[01;35m LN > [01;37m$(LIBDIR)/libipc.so[00m'
|
2020-01-28 13:42:49 +01:00
|
|
|
|
$(Q)ln -sf '$(LIBDIR)/libipc.so.0.5.1' '$(DESTDIR)/$(LIBDIR)/libipc.so'
|
2018-11-20 10:44:49 +01:00
|
|
|
|
|
|
|
|
|
libipc.so.clean:
|
2019-06-12 15:02:43 +02:00
|
|
|
|
@echo '[01;37m RM > [01;37mlibipc.so[00m'
|
2018-11-20 10:44:49 +01:00
|
|
|
|
$(Q)rm -f libipc.so
|
|
|
|
|
|
|
|
|
|
libipc.so.uninstall:
|
2020-01-28 13:42:49 +01:00
|
|
|
|
@echo '[01;37m RM > [01;37m$(LIBDIR)/libipc.so.0.5.1[00m'
|
|
|
|
|
$(Q)rm -f '$(DESTDIR)$(LIBDIR)/libipc.so.0.5.1'
|
|
|
|
|
@echo '[01;37m RM > [01;37m$(LIBDIR)/libipc.so.0.5[00m'
|
|
|
|
|
$(Q)rm -f '$(DESTDIR)$(LIBDIR)/libipc.so.0.5'
|
2019-06-12 15:02:43 +02:00
|
|
|
|
@echo '[01;37m RM > [01;37m$(LIBDIR)/libipc.so.0[00m'
|
2018-11-20 10:44:49 +01:00
|
|
|
|
$(Q)rm -f '$(DESTDIR)$(LIBDIR)/libipc.so.0'
|
2019-06-12 15:02:43 +02:00
|
|
|
|
@echo '[01;37m RM > [01;37m$(LIBDIR)/libipc.so[00m'
|
2018-11-20 10:44:49 +01:00
|
|
|
|
$(Q)rm -f '$(DESTDIR)$(LIBDIR)/libipc.so'
|
|
|
|
|
|
2020-01-01 12:11:34 +01:00
|
|
|
|
libipc.a: src/communication.o src/error.o src/fs.o src/message.o src/network.o src/print.o src/usocket.o src/utils.o
|
2019-06-12 15:02:43 +02:00
|
|
|
|
@echo '[01;32m LD > [01;37mlibipc.a[00m'
|
2020-01-01 12:11:34 +01:00
|
|
|
|
$(Q)$(AR) rc 'libipc.a' src/communication.o src/error.o src/fs.o src/message.o src/network.o src/print.o src/usocket.o src/utils.o
|
2018-11-20 10:44:49 +01:00
|
|
|
|
|
|
|
|
|
libipc.a.install: libipc.a
|
2019-06-12 15:02:43 +02:00
|
|
|
|
@echo '[01;31m IN > [01;37m$(LIBDIR)/libipc.a[00m'
|
2018-11-20 10:44:49 +01:00
|
|
|
|
$(Q)mkdir -p '$(DESTDIR)$(LIBDIR)'
|
|
|
|
|
$(Q)install -m0755 libipc.a $(DESTDIR)$(LIBDIR)/libipc.a
|
|
|
|
|
|
|
|
|
|
libipc.a.clean:
|
2019-06-12 15:02:43 +02:00
|
|
|
|
@echo '[01;37m RM > [01;37mlibipc.a[00m'
|
2018-11-20 10:44:49 +01:00
|
|
|
|
$(Q)rm -f libipc.a
|
|
|
|
|
|
|
|
|
|
libipc.a.uninstall:
|
2019-06-12 15:02:43 +02:00
|
|
|
|
@echo '[01;37m RM > [01;37m$(LIBDIR)/libipc.a[00m'
|
2018-11-20 10:44:49 +01:00
|
|
|
|
$(Q)rm -f '$(DESTDIR)$(LIBDIR)/libipc.a'
|
|
|
|
|
|
2019-07-27 15:46:04 +02:00
|
|
|
|
src/communication.o: src/communication.c src/ipc.h src/utils.h src/message.h
|
2019-06-12 15:02:43 +02:00
|
|
|
|
@echo '[01;34m CC > [01;37msrc/communication.o[00m'
|
2019-07-27 15:46:04 +02:00
|
|
|
|
$(Q)$(CC) $(CFLAGS) -fPIC -std=c11 -c src/communication.c -fPIC -std=c11 -o src/communication.o
|
2018-11-20 10:44:49 +01:00
|
|
|
|
|
|
|
|
|
src/communication.o.install:
|
|
|
|
|
|
|
|
|
|
src/communication.o.clean:
|
2019-06-12 15:02:43 +02:00
|
|
|
|
@echo '[01;37m RM > [01;37msrc/communication.o[00m'
|
2018-11-20 10:44:49 +01:00
|
|
|
|
$(Q)rm -f src/communication.o
|
|
|
|
|
|
|
|
|
|
src/communication.o.uninstall:
|
|
|
|
|
|
2019-07-27 15:46:04 +02:00
|
|
|
|
src/error.o: src/error.c src/ipc.h
|
2019-06-12 15:02:43 +02:00
|
|
|
|
@echo '[01;34m CC > [01;37msrc/error.o[00m'
|
2019-07-27 15:46:04 +02:00
|
|
|
|
$(Q)$(CC) $(CFLAGS) -fPIC -std=c11 -c src/error.c -fPIC -std=c11 -o src/error.o
|
2019-06-03 21:25:59 +02:00
|
|
|
|
|
|
|
|
|
src/error.o.install:
|
|
|
|
|
|
|
|
|
|
src/error.o.clean:
|
2019-06-12 15:02:43 +02:00
|
|
|
|
@echo '[01;37m RM > [01;37msrc/error.o[00m'
|
2019-06-03 21:25:59 +02:00
|
|
|
|
$(Q)rm -f src/error.o
|
|
|
|
|
|
|
|
|
|
src/error.o.uninstall:
|
|
|
|
|
|
2020-01-01 12:11:34 +01:00
|
|
|
|
src/fs.o: src/fs.c src/utils.h src/fs.h
|
|
|
|
|
@echo '[01;34m CC > [01;37msrc/fs.o[00m'
|
|
|
|
|
$(Q)$(CC) $(CFLAGS) -fPIC -std=c11 -c src/fs.c -fPIC -std=c11 -o src/fs.o
|
2018-11-20 10:44:49 +01:00
|
|
|
|
|
2020-01-01 12:11:34 +01:00
|
|
|
|
src/fs.o.install:
|
2018-11-20 10:44:49 +01:00
|
|
|
|
|
2020-01-01 12:11:34 +01:00
|
|
|
|
src/fs.o.clean:
|
|
|
|
|
@echo '[01;37m RM > [01;37msrc/fs.o[00m'
|
|
|
|
|
$(Q)rm -f src/fs.o
|
2018-11-20 10:44:49 +01:00
|
|
|
|
|
2020-01-01 12:11:34 +01:00
|
|
|
|
src/fs.o.uninstall:
|
2018-11-20 10:44:49 +01:00
|
|
|
|
|
2019-07-27 15:46:04 +02:00
|
|
|
|
src/message.o: src/message.c src/message.h src/usocket.h
|
2019-06-12 15:02:43 +02:00
|
|
|
|
@echo '[01;34m CC > [01;37msrc/message.o[00m'
|
2019-07-27 15:46:04 +02:00
|
|
|
|
$(Q)$(CC) $(CFLAGS) -fPIC -std=c11 -c src/message.c -fPIC -std=c11 -o src/message.o
|
2018-11-20 10:44:49 +01:00
|
|
|
|
|
|
|
|
|
src/message.o.install:
|
|
|
|
|
|
|
|
|
|
src/message.o.clean:
|
2019-06-12 15:02:43 +02:00
|
|
|
|
@echo '[01;37m RM > [01;37msrc/message.o[00m'
|
2018-11-20 10:44:49 +01:00
|
|
|
|
$(Q)rm -f src/message.o
|
|
|
|
|
|
|
|
|
|
src/message.o.uninstall:
|
|
|
|
|
|
2019-07-27 15:46:04 +02:00
|
|
|
|
src/network.o: src/network.c src/ipc.h
|
|
|
|
|
@echo '[01;34m CC > [01;37msrc/network.o[00m'
|
|
|
|
|
$(Q)$(CC) $(CFLAGS) -fPIC -std=c11 -c src/network.c -fPIC -std=c11 -o src/network.o
|
|
|
|
|
|
|
|
|
|
src/network.o.install:
|
|
|
|
|
|
|
|
|
|
src/network.o.clean:
|
|
|
|
|
@echo '[01;37m RM > [01;37msrc/network.o[00m'
|
|
|
|
|
$(Q)rm -f src/network.o
|
|
|
|
|
|
|
|
|
|
src/network.o.uninstall:
|
|
|
|
|
|
2020-01-01 12:11:34 +01:00
|
|
|
|
src/print.o: src/print.c src/ipc.h
|
|
|
|
|
@echo '[01;34m CC > [01;37msrc/print.o[00m'
|
|
|
|
|
$(Q)$(CC) $(CFLAGS) -fPIC -std=c11 -c src/print.c -fPIC -std=c11 -o src/print.o
|
|
|
|
|
|
|
|
|
|
src/print.o.install:
|
|
|
|
|
|
|
|
|
|
src/print.o.clean:
|
|
|
|
|
@echo '[01;37m RM > [01;37msrc/print.o[00m'
|
|
|
|
|
$(Q)rm -f src/print.o
|
|
|
|
|
|
|
|
|
|
src/print.o.uninstall:
|
|
|
|
|
|
|
|
|
|
src/usocket.o: src/usocket.c src/usocket.h src/utils.h src/fs.h
|
2019-06-12 15:02:43 +02:00
|
|
|
|
@echo '[01;34m CC > [01;37msrc/usocket.o[00m'
|
2019-07-27 15:46:04 +02:00
|
|
|
|
$(Q)$(CC) $(CFLAGS) -fPIC -std=c11 -c src/usocket.c -fPIC -std=c11 -o src/usocket.o
|
2018-11-20 10:44:49 +01:00
|
|
|
|
|
|
|
|
|
src/usocket.o.install:
|
|
|
|
|
|
|
|
|
|
src/usocket.o.clean:
|
2019-06-12 15:02:43 +02:00
|
|
|
|
@echo '[01;37m RM > [01;37msrc/usocket.o[00m'
|
2018-11-20 10:44:49 +01:00
|
|
|
|
$(Q)rm -f src/usocket.o
|
|
|
|
|
|
|
|
|
|
src/usocket.o.uninstall:
|
|
|
|
|
|
2019-07-27 15:46:04 +02:00
|
|
|
|
src/utils.o: src/utils.c src/utils.h src/ipc.h
|
2019-06-12 15:02:43 +02:00
|
|
|
|
@echo '[01;34m CC > [01;37msrc/utils.o[00m'
|
2019-07-27 15:46:04 +02:00
|
|
|
|
$(Q)$(CC) $(CFLAGS) -fPIC -std=c11 -c src/utils.c -fPIC -std=c11 -o src/utils.o
|
2018-11-20 10:44:49 +01:00
|
|
|
|
|
|
|
|
|
src/utils.o.install:
|
|
|
|
|
|
|
|
|
|
src/utils.o.clean:
|
2019-06-12 15:02:43 +02:00
|
|
|
|
@echo '[01;37m RM > [01;37msrc/utils.o[00m'
|
2018-11-20 10:44:49 +01:00
|
|
|
|
$(Q)rm -f src/utils.o
|
|
|
|
|
|
|
|
|
|
src/utils.o.uninstall:
|
|
|
|
|
|
2019-07-27 15:46:04 +02:00
|
|
|
|
src:
|
|
|
|
|
$(Q)mkdir -p src
|
|
|
|
|
man:
|
|
|
|
|
$(Q)mkdir -p man
|
2018-11-20 10:44:49 +01:00
|
|
|
|
$(DESTDIR)$(PREFIX):
|
2019-06-12 15:02:43 +02:00
|
|
|
|
@echo '[01;35m DIR > [01;37m$(PREFIX)[00m'
|
2018-11-20 10:44:49 +01:00
|
|
|
|
$(Q)mkdir -p $(DESTDIR)$(PREFIX)
|
|
|
|
|
$(DESTDIR)$(BINDIR):
|
2019-06-12 15:02:43 +02:00
|
|
|
|
@echo '[01;35m DIR > [01;37m$(BINDIR)[00m'
|
2018-11-20 10:44:49 +01:00
|
|
|
|
$(Q)mkdir -p $(DESTDIR)$(BINDIR)
|
|
|
|
|
$(DESTDIR)$(LIBDIR):
|
2019-06-12 15:02:43 +02:00
|
|
|
|
@echo '[01;35m DIR > [01;37m$(LIBDIR)[00m'
|
2018-11-20 10:44:49 +01:00
|
|
|
|
$(Q)mkdir -p $(DESTDIR)$(LIBDIR)
|
|
|
|
|
$(DESTDIR)$(SHAREDIR):
|
2019-06-12 15:02:43 +02:00
|
|
|
|
@echo '[01;35m DIR > [01;37m$(SHAREDIR)[00m'
|
2018-11-20 10:44:49 +01:00
|
|
|
|
$(Q)mkdir -p $(DESTDIR)$(SHAREDIR)
|
|
|
|
|
$(DESTDIR)$(INCLUDEDIR):
|
2019-06-12 15:02:43 +02:00
|
|
|
|
@echo '[01;35m DIR > [01;37m$(INCLUDEDIR)[00m'
|
2018-11-20 10:44:49 +01:00
|
|
|
|
$(Q)mkdir -p $(DESTDIR)$(INCLUDEDIR)
|
|
|
|
|
$(DESTDIR)$(MANDIR):
|
2019-06-12 15:02:43 +02:00
|
|
|
|
@echo '[01;35m DIR > [01;37m$(MANDIR)[00m'
|
2018-11-20 10:44:49 +01:00
|
|
|
|
$(Q)mkdir -p $(DESTDIR)$(MANDIR)
|
2020-01-28 13:42:49 +01:00
|
|
|
|
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
|
2018-11-20 10:44:49 +01:00
|
|
|
|
@:
|
|
|
|
|
|
2020-01-28 13:42:49 +01:00
|
|
|
|
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
|
2018-11-20 10:44:49 +01:00
|
|
|
|
@:
|
|
|
|
|
|
2020-01-28 13:42:49 +01:00
|
|
|
|
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
|
2018-11-20 10:44:49 +01:00
|
|
|
|
distclean: clean
|
|
|
|
|
dist: dist-gz dist-xz dist-bz2
|
|
|
|
|
$(Q)rm -- $(PACKAGE)-$(VERSION)
|
|
|
|
|
|
|
|
|
|
distdir:
|
|
|
|
|
$(Q)rm -rf -- $(PACKAGE)-$(VERSION)
|
|
|
|
|
$(Q)ln -s -- . $(PACKAGE)-$(VERSION)
|
|
|
|
|
|
|
|
|
|
dist-gz: $(PACKAGE)-$(VERSION).tar.gz
|
|
|
|
|
$(PACKAGE)-$(VERSION).tar.gz: distdir
|
2019-06-12 15:02:43 +02:00
|
|
|
|
@echo '[01;33m TAR > [01;37m$(PACKAGE)-$(VERSION).tar.gz[00m'
|
2018-11-20 10:44:49 +01:00
|
|
|
|
$(Q)tar czf $(PACKAGE)-$(VERSION).tar.gz \
|
|
|
|
|
$(PACKAGE)-$(VERSION)/Makefile \
|
|
|
|
|
$(PACKAGE)-$(VERSION)/project.zsh \
|
|
|
|
|
$(PACKAGE)-$(VERSION)/src/ipc.h \
|
2019-08-28 12:41:24 +02:00
|
|
|
|
$(PACKAGE)-$(VERSION)/man/libipc.7.scd \
|
2018-11-20 10:44:49 +01:00
|
|
|
|
$(PACKAGE)-$(VERSION)/src/communication.c \
|
2019-06-03 21:25:59 +02:00
|
|
|
|
$(PACKAGE)-$(VERSION)/src/error.c \
|
2020-01-01 12:11:34 +01:00
|
|
|
|
$(PACKAGE)-$(VERSION)/src/fs.c \
|
2018-11-20 10:44:49 +01:00
|
|
|
|
$(PACKAGE)-$(VERSION)/src/message.c \
|
2019-07-27 15:46:04 +02:00
|
|
|
|
$(PACKAGE)-$(VERSION)/src/network.c \
|
2020-01-01 12:11:34 +01:00
|
|
|
|
$(PACKAGE)-$(VERSION)/src/print.c \
|
2018-11-20 10:44:49 +01:00
|
|
|
|
$(PACKAGE)-$(VERSION)/src/usocket.c \
|
|
|
|
|
$(PACKAGE)-$(VERSION)/src/utils.c \
|
2020-01-01 12:11:34 +01:00
|
|
|
|
$(PACKAGE)-$(VERSION)/src/fs.h \
|
2018-11-20 10:44:49 +01:00
|
|
|
|
$(PACKAGE)-$(VERSION)/src/message.h \
|
|
|
|
|
$(PACKAGE)-$(VERSION)/src/usocket.h \
|
|
|
|
|
$(PACKAGE)-$(VERSION)/src/utils.h
|
|
|
|
|
|
|
|
|
|
dist-xz: $(PACKAGE)-$(VERSION).tar.xz
|
|
|
|
|
$(PACKAGE)-$(VERSION).tar.xz: distdir
|
2019-06-12 15:02:43 +02:00
|
|
|
|
@echo '[01;33m TAR > [01;37m$(PACKAGE)-$(VERSION).tar.xz[00m'
|
2018-11-20 10:44:49 +01:00
|
|
|
|
$(Q)tar cJf $(PACKAGE)-$(VERSION).tar.xz \
|
|
|
|
|
$(PACKAGE)-$(VERSION)/Makefile \
|
|
|
|
|
$(PACKAGE)-$(VERSION)/project.zsh \
|
|
|
|
|
$(PACKAGE)-$(VERSION)/src/ipc.h \
|
2019-08-28 12:41:24 +02:00
|
|
|
|
$(PACKAGE)-$(VERSION)/man/libipc.7.scd \
|
2018-11-20 10:44:49 +01:00
|
|
|
|
$(PACKAGE)-$(VERSION)/src/communication.c \
|
2019-06-03 21:25:59 +02:00
|
|
|
|
$(PACKAGE)-$(VERSION)/src/error.c \
|
2020-01-01 12:11:34 +01:00
|
|
|
|
$(PACKAGE)-$(VERSION)/src/fs.c \
|
2018-11-20 10:44:49 +01:00
|
|
|
|
$(PACKAGE)-$(VERSION)/src/message.c \
|
2019-07-27 15:46:04 +02:00
|
|
|
|
$(PACKAGE)-$(VERSION)/src/network.c \
|
2020-01-01 12:11:34 +01:00
|
|
|
|
$(PACKAGE)-$(VERSION)/src/print.c \
|
2018-11-20 10:44:49 +01:00
|
|
|
|
$(PACKAGE)-$(VERSION)/src/usocket.c \
|
|
|
|
|
$(PACKAGE)-$(VERSION)/src/utils.c \
|
2020-01-01 12:11:34 +01:00
|
|
|
|
$(PACKAGE)-$(VERSION)/src/fs.h \
|
2018-11-20 10:44:49 +01:00
|
|
|
|
$(PACKAGE)-$(VERSION)/src/message.h \
|
|
|
|
|
$(PACKAGE)-$(VERSION)/src/usocket.h \
|
|
|
|
|
$(PACKAGE)-$(VERSION)/src/utils.h
|
|
|
|
|
|
|
|
|
|
dist-bz2: $(PACKAGE)-$(VERSION).tar.bz2
|
|
|
|
|
$(PACKAGE)-$(VERSION).tar.bz2: distdir
|
2019-06-12 15:02:43 +02:00
|
|
|
|
@echo '[01;33m TAR > [01;37m$(PACKAGE)-$(VERSION).tar.bz2[00m'
|
2018-11-20 10:44:49 +01:00
|
|
|
|
$(Q)tar cjf $(PACKAGE)-$(VERSION).tar.bz2 \
|
|
|
|
|
$(PACKAGE)-$(VERSION)/Makefile \
|
|
|
|
|
$(PACKAGE)-$(VERSION)/project.zsh \
|
|
|
|
|
$(PACKAGE)-$(VERSION)/src/ipc.h \
|
2019-08-28 12:41:24 +02:00
|
|
|
|
$(PACKAGE)-$(VERSION)/man/libipc.7.scd \
|
2018-11-20 10:44:49 +01:00
|
|
|
|
$(PACKAGE)-$(VERSION)/src/communication.c \
|
2019-06-03 21:25:59 +02:00
|
|
|
|
$(PACKAGE)-$(VERSION)/src/error.c \
|
2020-01-01 12:11:34 +01:00
|
|
|
|
$(PACKAGE)-$(VERSION)/src/fs.c \
|
2018-11-20 10:44:49 +01:00
|
|
|
|
$(PACKAGE)-$(VERSION)/src/message.c \
|
2019-07-27 15:46:04 +02:00
|
|
|
|
$(PACKAGE)-$(VERSION)/src/network.c \
|
2020-01-01 12:11:34 +01:00
|
|
|
|
$(PACKAGE)-$(VERSION)/src/print.c \
|
2018-11-20 10:44:49 +01:00
|
|
|
|
$(PACKAGE)-$(VERSION)/src/usocket.c \
|
|
|
|
|
$(PACKAGE)-$(VERSION)/src/utils.c \
|
2020-01-01 12:11:34 +01:00
|
|
|
|
$(PACKAGE)-$(VERSION)/src/fs.h \
|
2018-11-20 10:44:49 +01:00
|
|
|
|
$(PACKAGE)-$(VERSION)/src/message.h \
|
|
|
|
|
$(PACKAGE)-$(VERSION)/src/usocket.h \
|
|
|
|
|
$(PACKAGE)-$(VERSION)/src/utils.h
|
|
|
|
|
|
|
|
|
|
help:
|
2020-01-28 13:42:49 +01:00
|
|
|
|
@echo '[01;37m :: ipc-0.5.1[00m'
|
2018-11-20 10:44:49 +01:00
|
|
|
|
@echo ''
|
2019-06-12 15:02:43 +02:00
|
|
|
|
@echo '[01;37mGeneric targets:[00m'
|
|
|
|
|
@echo '[00m - [01;32mhelp [37m Prints this help message.[00m'
|
|
|
|
|
@echo '[00m - [01;32mall [37m Builds all targets.[00m'
|
|
|
|
|
@echo '[00m - [01;32mdist [37m Creates tarballs of the files of the project.[00m'
|
|
|
|
|
@echo '[00m - [01;32minstall [37m Installs the project.[00m'
|
|
|
|
|
@echo '[00m - [01;32mclean [37m Removes compiled files.[00m'
|
|
|
|
|
@echo '[00m - [01;32muninstall [37m Deinstalls the project.[00m'
|
2018-11-20 10:44:49 +01:00
|
|
|
|
@echo ''
|
2019-06-12 15:02:43 +02:00
|
|
|
|
@echo '[01;37mCLI-modifiable variables:[00m'
|
|
|
|
|
@echo ' - [01;34mCFLAGS [37m ${CFLAGS}[00m'
|
2019-11-14 20:44:18 +01:00
|
|
|
|
@echo ' - [01;34mCC [37m ${CC}[00m'
|
|
|
|
|
@echo ' - [01;34mCXX [37m ${CXX}[00m'
|
|
|
|
|
@echo ' - [01;34mLD [37m ${LD}[00m'
|
|
|
|
|
@echo ' - [01;34mCXXFLAGS [37m ${CXXFLAGS}[00m'
|
2019-06-12 15:02:43 +02:00
|
|
|
|
@echo ' - [01;34mLDFLAGS [37m ${LDFLAGS}[00m'
|
|
|
|
|
@echo ' - [01;34mPREFIX [37m ${PREFIX}[00m'
|
|
|
|
|
@echo ' - [01;34mBINDIR [37m ${BINDIR}[00m'
|
|
|
|
|
@echo ' - [01;34mLIBDIR [37m ${LIBDIR}[00m'
|
|
|
|
|
@echo ' - [01;34mSHAREDIR [37m ${SHAREDIR}[00m'
|
|
|
|
|
@echo ' - [01;34mINCLUDEDIR [37m ${INCLUDEDIR}[00m'
|
|
|
|
|
@echo ' - [01;34mMANDIR [37m ${MANDIR}[00m'
|
2018-11-20 10:44:49 +01:00
|
|
|
|
@echo ''
|
2019-06-12 15:02:43 +02:00
|
|
|
|
@echo '[01;37mProject targets: [00m'
|
|
|
|
|
@echo ' - [01;33mlibipc [37m library[00m'
|
|
|
|
|
@echo ' - [01;33msrc/ipc.h [37m header[00m'
|
2020-01-28 13:42:49 +01:00
|
|
|
|
@echo ' - [01;33msrc/usocket.h [37m header[00m'
|
|
|
|
|
@echo ' - [01;33msrc/message.h [37m header[00m'
|
|
|
|
|
@echo ' - [01;33msrc/fs.h [37m header[00m'
|
|
|
|
|
@echo ' - [01;33msrc/utils.h [37m header[00m'
|
2019-08-28 12:41:24 +02:00
|
|
|
|
@echo ' - [01;33mman/libipc.7 [37m scdocman[00m'
|
2018-11-20 10:44:49 +01:00
|
|
|
|
@echo ''
|
2019-06-12 15:02:43 +02:00
|
|
|
|
@echo '[01;37mMakefile options:[00m'
|
2018-11-20 10:44:49 +01:00
|
|
|
|
@echo ' - gnu: false'
|
2019-06-12 15:02:43 +02:00
|
|
|
|
@echo ' - colors: true'
|
2018-11-20 10:44:49 +01:00
|
|
|
|
@echo ''
|
2019-06-12 15:02:43 +02:00
|
|
|
|
@echo '[01;37mRebuild the Makefile with:[00m'
|
|
|
|
|
@echo ' zsh ./build.zsh -c'
|
2019-11-14 20:44:18 +01:00
|
|
|
|
.PHONY: all clean distclean dist install uninstall help
|
2018-11-20 10:44:49 +01:00
|
|
|
|
|