]> git.tuebingen.mpg.de Git - lopsub.git/blobdiff - Makefile
lopsub-1.0.5
[lopsub.git] / Makefile
index ac9656eda6d2737a52d36de816d8f16850365d10..6fbca9cd1b4768df0f4f56fba333af73f29ae434 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -113,9 +113,13 @@ lsg1.o: lsg.c lsg.h
 lopsubgen-stage1: $(lsg1_objs)
        $(CC) -Wall -g $(lsg1_objs) -o $@
 lopsubgen: $(lsg_objs)
-       $(CC) -Wall -g -o $@ $(lsg_objs)
+       $(CC) -Wall -g $(LDFLAGS) -o $@ $(lsg_objs)
 $(REALNAME): $(liblopsub_objs)
-       $(CC) --shared -Wl,-soname,liblopsub.so.$(MAJOR_VERSION) -o $@ $^
+       $(CC) --shared -Wl,-soname,liblopsub.so.$(MAJOR_VERSION) \
+               $(LDFLAGS) -o $@ $^
+liblopsub.a: $(liblopsub_objs)
+       $(AR) -rcs $@ $^
+
 lopsubex: $(lopsubex_objs) $(REALNAME)
        $(CC) -Wall -g -o $@ $(lopsubex_objs)