X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=Makefile;h=dfafe8e1c1575205b88fe1eb671637426cc7f67a;hb=4188334089974d84806300e35a885b65c4dfcb08;hp=ce2f50886b1a10c3ab6cefdb5d1d00a45dfc4fc2;hpb=ee1cae18ac61fb59f85e01ed833404ce985dff7a;p=grml-terminalserver.git diff --git a/Makefile b/Makefile index ce2f508..dfafe8e 100644 --- a/Makefile +++ b/Makefile @@ -12,10 +12,14 @@ usrbin = $(usr)/bin usrsbin = $(usr)/sbin usrshare = $(usr)/share/$(name) -bin: timeout +bin: timeout udhcpc timeout: timeout.c diet gcc $(CFLAGS) $^ -o $@ + strip --strip-unneeded $@ + +udhcpc: udhcp + cd udhcp ; LDFLAGS='-static' make install: bin $(install_) -d -m 755 $(etc) @@ -28,11 +32,11 @@ install: bin $(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) @@ -41,4 +45,4 @@ install: bin $(install_) -m 755 grml-terminalserver-config $(usrsbin) clean: - rm -f timeout + rm -f timeout ; cd udhcp && make clean && cd ..