From 499393d0cda7781d3be42a859ead02277284bc61 Mon Sep 17 00:00:00 2001 From: citats Date: Sat, 10 Apr 2004 17:47:30 +0000 Subject: 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 --- Makefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 2625ed8..d53292b 100755 --- a/Makefile +++ b/Makefile @@ -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 \ -- cgit v1.2.3