diff options
author | citats <citats@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2004-04-10 17:47:30 +0000 |
---|---|---|
committer | citats <citats@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2004-04-10 17:47:30 +0000 |
commit | 499393d0cda7781d3be42a859ead02277284bc61 (patch) | |
tree | 45cca31fc31ec3877e074502c18dd6169a28b720 /Makefile | |
parent | c0a35bb70a6d3f56f7cb675ef05792ad4a3873e0 (diff) |
Switch to using a non-shared copy of libtonezone with ztcfg so systems that have a seperate filesystem for /usr can modprobe early on in the boot process (before /usr is mounted)
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@361 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'Makefile')
-rwxr-xr-x | Makefile | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -174,6 +174,9 @@ sethdlc-new: sethdlc-new.o sethdlc-new.o: sethdlc-new.c $(CC) -c $(CFLAGS) -I$(KINCLUDES) sethdlc-new.c +libtonezone.a: $(TZOBJS) + ar rcs libtonezone.a $(TZOBJS) + $(LIBTONEZONE): $(TZOBJS) $(CC) -shared -Wl,-soname,libtonezone.so.1 -lm -o $@ $(TZOBJS) /sbin/ldconfig -n . @@ -181,8 +184,11 @@ $(LIBTONEZONE): $(TZOBJS) ztcfg.c: ztcfg.h -ztcfg: ztcfg.o $(LIBTONEZONE) - $(CC) -o ztcfg ztcfg.o -lm -L. -ltonezone +ztcfg-shared: ztcfg.o $(LIBTONEZONE) + $(CC) -o ztcfg-shared ztcfg.o -lm -L. -ltonezone + +ztcfg: ztcfg.o libtonezone.a + $(CC) -o ztcfg ztcfg.o -lm -L. libtonezone.a ztcfg-dude: ztcfg-dude.o mknotch.o complex.o $(LIBTONEZONE) $(CC) -o ztcfg ztcfg-dude.o mknotch.o complex.o -lm -L. -ltonezone @@ -230,7 +236,7 @@ else @echo "**** devfs detected -- not making device nodes" endif -install: all devices +install: all devices $(LIBTONEZONE) mkdir -p $(INSTALL_PREFIX)/sbin install -m 755 ztcfg $(INSTALL_PREFIX)/sbin if [ -f sethdlc-new ]; then \ |