X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=Makefile;h=ce2f50886b1a10c3ab6cefdb5d1d00a45dfc4fc2;hb=ee1cae18ac61fb59f85e01ed833404ce985dff7a;hp=78296ab20eef99b222c7eff4a2bd5ff0dd96e487;hpb=5d574dda6739f771891b3bc5be9c3283320ac36f;p=grml-terminalserver.git diff --git a/Makefile b/Makefile index 78296ab..ce2f508 100644 --- a/Makefile +++ b/Makefile @@ -2,14 +2,22 @@ install_ = "install" name = "grml-terminalserver" +#ifndef CFLAGS +CFLAGS = -Wall -O2 +#endif + etc = ${DESTDIR}/etc/grml/terminalserver usr = ${DESTDIR}/usr usrbin = $(usr)/bin usrsbin = $(usr)/sbin usrshare = $(usr)/share/$(name) +bin: timeout + +timeout: timeout.c + diet gcc $(CFLAGS) $^ -o $@ -install: +install: bin $(install_) -d -m 755 $(etc) $(install_) -m 644 config $(etc) @@ -33,4 +41,4 @@ install: $(install_) -m 755 grml-terminalserver-config $(usrsbin) clean: - true + rm -f timeout