diff options
Diffstat (limited to 'res/Makefile')
-rwxr-xr-x | res/Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/res/Makefile b/res/Makefile index e5f6d7c37..136c54b88 100755 --- a/res/Makefile +++ b/res/Makefile @@ -22,7 +22,7 @@ CFLAGS+=$(shell [ -f /usr/include/linux/zaptel.h ] && echo " -DZAPATA_MOH") # CFLAGS+=-DOPENSSL_NO_KRB5 -fPIC -all: $(MODS) +all: depend $(MODS) install: all for x in $(MODS); do $(INSTALL) -m 755 $$x $(MODULES_DIR) ; done @@ -31,7 +31,14 @@ res_crypto.so: res_crypto.o $(CC) -shared -Xlinker -x -o $@ $< $(CRYPTO_LIBS) clean: - rm -f *.so *.o + rm -f *.so *.o .depend %.so : %.o $(CC) -shared -Xlinker -x -o $@ $< + +include .depend + +depend: .depend + +.depend: + ../mkdep $(CFLAGS) `ls *.c` |