Simply copy the glenv binary and the libglenv.so library to
${PREFIX}/bin and ${PREFIX}/lib respectively.
libglenv.so: glwrap.c
$(CC) $(GLENV_CFLAGS) $(GLENV_LDFLAGS) -fPIC -shared -Wl,-Bsymbolic -o $@ $<
+.PHONY: install
+install: all
+ mkdir -p $(DESTDIR)$(BINDIR)
+ install -m07555 glenv $(DESTDIR)$(BINDIR)
+ mkdir -p $(DESTDIR)$(LIBDIR)
+ install -m0644 libglenv.so $(DESTDIR)$(LIBDIR)
+
clean:
rm -f $(TARGETS)