]> git.tue.mpg.de Git - osl.git/commitdiff
build: Remove make(1) targets to build a static library.
authorAndre Noll <maan@tuebingen.mpg.de>
Wed, 17 Jun 2020 17:54:00 +0000 (19:54 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Wed, 17 Jun 2020 20:20:02 +0000 (22:20 +0200)
These targets are not included in the default ("all") target.

Makefile

index 4ba28b1fabe4abc97a99c71b60b5372f3dce9597..a55273844f9106911dc032a928b7bea7ad732cfa 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -96,13 +96,6 @@ oslfsck: $(fsck_objects)
 $(realname): $(objects)
        $(CC) $(OSL_LDFLAGS) $(LDFLAGS) -o $@ $(objects)
 
-$(libname).sym: osl.h.in
-       sed -Ene '/^int|^const/{s/.*(osl_.*)\(.*/\1/; p;}' $< > $@
-$(libname).ga: $(objects)
-       $(LD) -r -o $@ $(objects)
-lib$(libname).a: $(libname).ga $(libname).sym
-       $(OBJCOPY) --keep-global-symbols $(libname).sym $(libname).ga $@
-
 errtab.h: errlist
        sed -e 's/^\([A-Z_]*\)\s*\(.*\)/OSL_ERROR(E_OSL_\1, \2)/g' $< > $@
 
@@ -118,7 +111,7 @@ osl.h: osl.h.in errlist Makefile
                -e '$$s/$$/};/1' errlist >> $@
        echo '#endif /* _OSL_H */' >> $@
 clean:
-       rm -f *.o $(realname) osl.h errtab.h oslfsck *.a *.ga *.sym *.lsg.* *.d
+       rm -f *.o $(realname) osl.h errtab.h oslfsck *.lsg.* *.d
 
 distclean: clean
        rm -f web/index.html web/oslfsck.1.html web/osl.png