summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xMakefile12
1 files changed, 9 insertions, 3 deletions
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 \