# libosl's versioning consists of three numbers. Let's call them x, y and z.
# The way x, y and z are interpreted depends on the OS.
x := 0
y := 1
# libosl's versioning consists of three numbers. Let's call them x, y and z.
# The way x, y and z are interpreted depends on the OS.
x := 0
y := 1
+$(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 $@
+
install-lib: $(realname) $(headers)
$(MKDIR) $(libdir) $(includedir)
$(RM) $(libdir)/$(linkername)
install-lib: $(realname) $(headers)
$(MKDIR) $(libdir) $(includedir)
$(RM) $(libdir)/$(linkername)
$(INSTALL) -m 755 $(realname) $(libdir)
$(INSTALL) -m 644 $(headers) $(includedir)
install: all install-bin install-man install-lib
$(INSTALL) -m 755 $(realname) $(libdir)
$(INSTALL) -m 644 $(headers) $(includedir)
install: all install-bin install-man install-lib
sed -e '/@README@/,$$d' web/index.html.in > $@
grutatxt -nb < README >> $@
sed -e '1,/@README@/d' -e '/@INSTALL@/,$$d' web/index.html.in >> $@
grutatxt -nb < INSTALL >> $@
sed -e '1,/@INSTALL@/d' -e '/@MAN_PAGE@/,$$d' web/index.html.in >> $@
sed -e '/@README@/,$$d' web/index.html.in > $@
grutatxt -nb < README >> $@
sed -e '1,/@README@/d' -e '/@INSTALL@/,$$d' web/index.html.in >> $@
grutatxt -nb < INSTALL >> $@
sed -e '1,/@INSTALL@/d' -e '/@MAN_PAGE@/,$$d' web/index.html.in >> $@