CXXFLAGS += -fPIC
LDFLAGS += -shared -L$(DIR_LIB) -Wl,-rpath,$(PREFIX)/usr/lib/stg
-vpath %.so $(DIR_LIB)
+vpath %.a $(DIR_LIB)
all: $(PROG)
clean:
rm -f deps $(PROG) *.o tags *.*~
-install:
+install: $(PROG)
mkdir -m $(DIR_MODE) -p $(PREFIX)/usr/lib/stg
install -m $(BIN_MODE) -o $(OWNER) -s $(PROG) $(PREFIX)/usr/lib/stg/$(PROG)