X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/789e1567f735cb92cf574c74f792705445de2fd7..1adb53e896797c73b5528ee178bd73ff51be2c43:/projects/stargazer/plugins/Makefile.in diff --git a/projects/stargazer/plugins/Makefile.in b/projects/stargazer/plugins/Makefile.in index 17e10ace..70954a2a 100644 --- a/projects/stargazer/plugins/Makefile.in +++ b/projects/stargazer/plugins/Makefile.in @@ -15,12 +15,12 @@ LIBS += $(addprefix -lstg,$(STGLIBS)) CXXFLAGS += -fPIC $(STGLIBS_INCS) CFLAGS += -fPIC $(STGLIBS_INCS) -LDFLAGS += -shared -Wl,-rpath,$(PREFIX)/usr/lib/stg $(STGLIBS_LIBS) +LDFLAGS += -shared -Wl,-rpath,$(PREFIX)/usr/lib/stg all: $(PROG) $(PROG): $(OBJS) - $(CXX) $^ $(LDFLAGS) $(LIBS) -o $(PROG) + $(CXX) $^ $(STGLIBS_LIBS) $(LIBS) $(LDFLAGS) -o $(PROG) $(LN) -fs "`pwd`/$(PROG)" $(DIR_MOD)/$(PROG) clean: @@ -28,7 +28,11 @@ clean: install: $(PROG) mkdir -m $(DIR_MODE) -p $(PREFIX)/usr/lib/stg - install -m $(BIN_MODE) -o $(OWNER) -s $(PROG) $(PREFIX)/usr/lib/stg/$(PROG) +ifeq ($(DEBUG), yes) + install -D -m $(BIN_MODE) -o $(OWNER) $(PROG) $(PREFIX)/usr/lib/stg/$(PROG) +else + install -D -m $(BIN_MODE) -o $(OWNER) -s $(PROG) $(PREFIX)/usr/lib/stg/$(PROG) +endif uninstall: rm -f $(PREFIX)/usr/lib/stg/$(PROG)