X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=Makefile;h=dfafe8e1c1575205b88fe1eb671637426cc7f67a;hb=refs%2Ftags%2F0.79;hp=78296ab20eef99b222c7eff4a2bd5ff0dd96e487;hpb=5cfde9a53ae09722a416e17f83d470b5fbae614f;p=grml-terminalserver.git diff --git a/Makefile b/Makefile index 78296ab..dfafe8e 100644 --- a/Makefile +++ b/Makefile @@ -2,14 +2,26 @@ 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 udhcpc + +timeout: timeout.c + diet gcc $(CFLAGS) $^ -o $@ + strip --strip-unneeded $@ + +udhcpc: udhcp + cd udhcp ; LDFLAGS='-static' make -install: +install: bin $(install_) -d -m 755 $(etc) $(install_) -m 644 config $(etc) @@ -20,11 +32,11 @@ install: $(install_) -m 755 nfs-kernel-server $(usrshare) $(install_) -m 755 linuxrc $(usrshare) $(install_) -m 755 udhcp-config.sh $(usrshare) - $(install_) -m 755 udhcpc $(usrshare) $(install_) -m 755 modcalc $(usrshare) $(install_) -m 755 rdir $(usrshare) $(install_) -m 755 cdir $(usrshare) $(install_) -m 755 timeout $(usrshare) + $(install_) -m 755 udhcp/udhcpc $(usrshare) $(install_) -m 755 discover-nic $(usrshare) cp -r templates $(usrshare) @@ -33,4 +45,4 @@ install: $(install_) -m 755 grml-terminalserver-config $(usrsbin) clean: - true + rm -f timeout ; cd udhcp && make clean && cd ..