plumberd => ipcd
parent
2f3ece0739
commit
c302f5df6b
49
Makefile
49
Makefile
|
@ -7,12 +7,7 @@ LIBDIR := $(PREFIX)/lib
|
||||||
SHAREDIR := $(PREFIX)/share
|
SHAREDIR := $(PREFIX)/share
|
||||||
INCLUDEDIR := $(PREFIX)/include
|
INCLUDEDIR := $(PREFIX)/include
|
||||||
MANDIR := $(SHAREDIR)/man
|
MANDIR := $(SHAREDIR)/man
|
||||||
|
CRFLAGS := --release
|
||||||
CC := cc
|
|
||||||
AR := ar
|
|
||||||
RANLIB := ranlib
|
|
||||||
CFLAGS :=
|
|
||||||
LDFLAGS :=
|
|
||||||
|
|
||||||
Q := @
|
Q := @
|
||||||
|
|
||||||
|
@ -21,7 +16,7 @@ all: tcpd tcpc pongd pongc plumberd websocketc websocketd
|
||||||
|
|
||||||
tcpd: src/tcpd.cr
|
tcpd: src/tcpd.cr
|
||||||
@echo '[01;35m CR > [01;37mtcpd[00m'
|
@echo '[01;35m CR > [01;37mtcpd[00m'
|
||||||
$(Q)crystal src/tcpd.cr -o 'tcpd'
|
$(Q)crystal build $(CRFLAGS) src/tcpd.cr -o 'tcpd'
|
||||||
|
|
||||||
|
|
||||||
tcpd.install: tcpd
|
tcpd.install: tcpd
|
||||||
|
@ -39,7 +34,7 @@ tcpd.uninstall:
|
||||||
|
|
||||||
tcpc: src/tcpc.cr
|
tcpc: src/tcpc.cr
|
||||||
@echo '[01;35m CR > [01;37mtcpc[00m'
|
@echo '[01;35m CR > [01;37mtcpc[00m'
|
||||||
$(Q)crystal src/tcpc.cr -o 'tcpc'
|
$(Q)crystal build $(CRFLAGS) src/tcpc.cr -o 'tcpc'
|
||||||
|
|
||||||
|
|
||||||
tcpc.install: tcpc
|
tcpc.install: tcpc
|
||||||
|
@ -57,7 +52,7 @@ tcpc.uninstall:
|
||||||
|
|
||||||
pongd: src/pongd.cr
|
pongd: src/pongd.cr
|
||||||
@echo '[01;35m CR > [01;37mpongd[00m'
|
@echo '[01;35m CR > [01;37mpongd[00m'
|
||||||
$(Q)crystal src/pongd.cr -o 'pongd'
|
$(Q)crystal build $(CRFLAGS) src/pongd.cr -o 'pongd'
|
||||||
|
|
||||||
|
|
||||||
pongd.install: pongd
|
pongd.install: pongd
|
||||||
|
@ -75,7 +70,7 @@ pongd.uninstall:
|
||||||
|
|
||||||
pongc: src/pongc.cr
|
pongc: src/pongc.cr
|
||||||
@echo '[01;35m CR > [01;37mpongc[00m'
|
@echo '[01;35m CR > [01;37mpongc[00m'
|
||||||
$(Q)crystal src/pongc.cr -o 'pongc'
|
$(Q)crystal build $(CRFLAGS) src/pongc.cr -o 'pongc'
|
||||||
|
|
||||||
|
|
||||||
pongc.install: pongc
|
pongc.install: pongc
|
||||||
|
@ -93,7 +88,7 @@ pongc.uninstall:
|
||||||
|
|
||||||
plumberd: src/plumberd.cr
|
plumberd: src/plumberd.cr
|
||||||
@echo '[01;35m CR > [01;37mplumberd[00m'
|
@echo '[01;35m CR > [01;37mplumberd[00m'
|
||||||
$(Q)crystal src/plumberd.cr -o 'plumberd'
|
$(Q)crystal build $(CRFLAGS) src/plumberd.cr -o 'plumberd'
|
||||||
|
|
||||||
|
|
||||||
plumberd.install: plumberd
|
plumberd.install: plumberd
|
||||||
|
@ -111,7 +106,7 @@ plumberd.uninstall:
|
||||||
|
|
||||||
websocketc: src/websocketc.cr
|
websocketc: src/websocketc.cr
|
||||||
@echo '[01;35m CR > [01;37mwebsocketc[00m'
|
@echo '[01;35m CR > [01;37mwebsocketc[00m'
|
||||||
$(Q)crystal src/websocketc.cr -o 'websocketc'
|
$(Q)crystal build $(CRFLAGS) src/websocketc.cr -o 'websocketc'
|
||||||
|
|
||||||
|
|
||||||
websocketc.install: websocketc
|
websocketc.install: websocketc
|
||||||
|
@ -129,7 +124,7 @@ websocketc.uninstall:
|
||||||
|
|
||||||
websocketd: src/websocketd.cr
|
websocketd: src/websocketd.cr
|
||||||
@echo '[01;35m CR > [01;37mwebsocketd[00m'
|
@echo '[01;35m CR > [01;37mwebsocketd[00m'
|
||||||
$(Q)crystal src/websocketd.cr -o 'websocketd'
|
$(Q)crystal build $(CRFLAGS) src/websocketd.cr -o 'websocketd'
|
||||||
|
|
||||||
|
|
||||||
websocketd.install: websocketd
|
websocketd.install: websocketd
|
||||||
|
@ -163,25 +158,14 @@ $(DESTDIR)$(INCLUDEDIR):
|
||||||
$(DESTDIR)$(MANDIR):
|
$(DESTDIR)$(MANDIR):
|
||||||
@echo '[01;35m DIR > [01;37m$(MANDIR)[00m'
|
@echo '[01;35m DIR > [01;37m$(MANDIR)[00m'
|
||||||
$(Q)mkdir -p $(DESTDIR)$(MANDIR)
|
$(Q)mkdir -p $(DESTDIR)$(MANDIR)
|
||||||
install: subdirs.install tcpd.install tcpc.install pongd.install pongc.install plumberd.install websocketc.install websocketd.install
|
install: tcpd.install tcpc.install pongd.install pongc.install plumberd.install websocketc.install websocketd.install
|
||||||
@:
|
@:
|
||||||
|
|
||||||
subdirs.install:
|
uninstall: tcpd.uninstall tcpc.uninstall pongd.uninstall pongc.uninstall plumberd.uninstall websocketc.uninstall websocketd.uninstall
|
||||||
|
|
||||||
uninstall: subdirs.uninstall tcpd.uninstall tcpc.uninstall pongd.uninstall pongc.uninstall plumberd.uninstall websocketc.uninstall websocketd.uninstall
|
|
||||||
@:
|
@:
|
||||||
|
|
||||||
subdirs.uninstall:
|
|
||||||
|
|
||||||
test: all subdirs subdirs.test
|
|
||||||
@:
|
|
||||||
|
|
||||||
subdirs.test:
|
|
||||||
|
|
||||||
clean: tcpd.clean tcpc.clean pongd.clean pongc.clean plumberd.clean websocketc.clean websocketd.clean
|
clean: tcpd.clean tcpc.clean pongd.clean pongc.clean plumberd.clean websocketc.clean websocketd.clean
|
||||||
|
|
||||||
distclean: clean
|
distclean: clean
|
||||||
|
|
||||||
dist: dist-gz dist-xz dist-bz2
|
dist: dist-gz dist-xz dist-bz2
|
||||||
$(Q)rm -- $(PACKAGE)-$(VERSION)
|
$(Q)rm -- $(PACKAGE)-$(VERSION)
|
||||||
|
|
||||||
|
@ -237,10 +221,13 @@ help:
|
||||||
@echo '[00m - [01;32muninstall [37m Deinstalls the project.[00m'
|
@echo '[00m - [01;32muninstall [37m Deinstalls the project.[00m'
|
||||||
@echo ''
|
@echo ''
|
||||||
@echo '[01;37mCLI-modifiable variables:[00m'
|
@echo '[01;37mCLI-modifiable variables:[00m'
|
||||||
@echo ' - [01;34mCC [37m ${CC}[00m'
|
@echo ' - [01;34mCRFLAGS [37m ${CRFLAGS}[00m'
|
||||||
@echo ' - [01;34mCFLAGS [37m ${CFLAGS}[00m'
|
@echo ' - [01;34mCRFLAGS [37m ${CRFLAGS}[00m'
|
||||||
@echo ' - [01;34mLDFLAGS [37m ${LDFLAGS}[00m'
|
@echo ' - [01;34mCRFLAGS [37m ${CRFLAGS}[00m'
|
||||||
@echo ' - [01;34mDESTDIR [37m ${DESTDIR}[00m'
|
@echo ' - [01;34mCRFLAGS [37m ${CRFLAGS}[00m'
|
||||||
|
@echo ' - [01;34mCRFLAGS [37m ${CRFLAGS}[00m'
|
||||||
|
@echo ' - [01;34mCRFLAGS [37m ${CRFLAGS}[00m'
|
||||||
|
@echo ' - [01;34mCRFLAGS [37m ${CRFLAGS}[00m'
|
||||||
@echo ' - [01;34mPREFIX [37m ${PREFIX}[00m'
|
@echo ' - [01;34mPREFIX [37m ${PREFIX}[00m'
|
||||||
@echo ' - [01;34mBINDIR [37m ${BINDIR}[00m'
|
@echo ' - [01;34mBINDIR [37m ${BINDIR}[00m'
|
||||||
@echo ' - [01;34mLIBDIR [37m ${LIBDIR}[00m'
|
@echo ' - [01;34mLIBDIR [37m ${LIBDIR}[00m'
|
||||||
|
@ -263,5 +250,5 @@ help:
|
||||||
@echo ''
|
@echo ''
|
||||||
@echo '[01;37mRebuild the Makefile with:[00m'
|
@echo '[01;37mRebuild the Makefile with:[00m'
|
||||||
@echo ' zsh ./build.zsh -c'
|
@echo ' zsh ./build.zsh -c'
|
||||||
.PHONY: all subdirs clean distclean dist install uninstall help
|
.PHONY: all clean distclean dist install uninstall help
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
|
|
||||||
package=plumberd
|
package=ipcd
|
||||||
version=0.1.0
|
version=0.2.0
|
||||||
|
|
||||||
targets=(tcpd tcpc pongd pongc plumberd websocketc websocketd)
|
targets=(tcpd tcpc pongd pongc ipcd websocketc websocketd)
|
||||||
|
|
||||||
for target in tcpd tcpc pongd pongc plumberd websocketc websocketd; do
|
for target in tcpd tcpc pongd pongc ipcd websocketc websocketd; do
|
||||||
type[$target]=crystal
|
type[$target]=crystal
|
||||||
sources[$target]=src/${target}.cr
|
sources[$target]=src/${target}.cr
|
||||||
done
|
done
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
name: plumberd
|
name: ipcd
|
||||||
version: 0.2.0
|
version: 0.2.0
|
||||||
|
|
||||||
authors:
|
authors:
|
||||||
- karchnu <karchnu@karchnu.fr>
|
- karchnu <karchnu@karchnu.fr>
|
||||||
|
|
||||||
description: |
|
description: |
|
||||||
Plumberd allows IPC clients to contact remote services.
|
IPCd allows IPC clients to contact remote services.
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
ipc:
|
ipc:
|
||||||
|
@ -18,8 +18,8 @@ targets:
|
||||||
pongd:
|
pongd:
|
||||||
main: src/pongd.cr
|
main: src/pongd.cr
|
||||||
|
|
||||||
plumberd:
|
ipcd:
|
||||||
main: src/main.cr
|
main: src/ipcd.cr
|
||||||
|
|
||||||
admind:
|
admind:
|
||||||
main: src/admind.cr
|
main: src/admind.cr
|
||||||
|
|
Reference in New Issue