-$(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 $@
-
-osl_errors.h: errlist
- echo '/** public error codes of the osl library. */' > $@
- sed -e 's/\([A-Z_]*\) .*/ E_OSL_\1/' \
- -e '1s/^/enum osl_errors {/1' \
- -e '1s/$$/=1/1' \
- -e '$$!s/$$/,/g' \
- -e '$$s/$$/};/1' $< >> $@
-