--- a/projects/rlm_stg/Makefile.org 2013-01-18 16:17:18.000000000 +0200 +++ b/projects/rlm_stg/Makefile 2013-01-18 16:19:13.000000000 +0200 @@ -57,16 +57,28 @@ install-bin: ifeq ($(DEBUG), yes) +ifeq ($(OS), linux) install -D -m $(BIN_MODE) -o $(OWNER) $(PROG) $(PREFIX)/usr/lib/freeradius/$(PROG) else + install -D -m $(BIN_MODE) -o $(OWNER) $(PROG) $(PREFIX)/usr/lib/$(PROG) +endif +else +ifeq ($(OS), linux) install -D -m $(BIN_MODE) -o $(OWNER) -s $(PROG) $(PREFIX)/usr/lib/freeradius/$(PROG) +else + install -D -m $(BIN_MODE) -o $(OWNER) -s $(PROG) $(PREFIX)/usr/lib/$(PROG) +endif endif $(MAKE) -C $(DIR_LIBSRC) install uninstall: uninstall-bin uninstall-bin: +ifeq ($(OS), linux) rm -f $(PREFIX)/usr/lib/freeradius/$(PROG) +else + rm -f $(PREFIX)/usr/lib/$(PROG) +endif ifneq ($(MAKECMDGOALS),distclean) ifneq ($(MAKECMDGOALS),clean)