* Improve handling of NAT/gateway feature, thanks - Wolfgang Karall!
[grml-terminalserver.git] / Makefile
index ce2f508..dfafe8e 100644 (file)
--- 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 ..