git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reduced public interface.
[stg.git]
/
projects
/
stargazer
/
plugins
/
Makefile.in
diff --git
a/projects/stargazer/plugins/Makefile.in
b/projects/stargazer/plugins/Makefile.in
index 70954a2a8aef74a5a38d89d021efce16f623632e..36aebbef5068c54442803dac21678591f847b76e 100644
(file)
--- a/
projects/stargazer/plugins/Makefile.in
+++ b/
projects/stargazer/plugins/Makefile.in
@@
-9,18
+9,23
@@
OBJS = $(notdir $(patsubst %.cpp, %.o, $(patsubst %.c, %.o, $(SRCS))))
LN = ln
STGLIBS_INCS = $(addprefix -I ../../../../../stglibs/,$(addsuffix .lib/include,$(STGLIBS)))
LN = ln
STGLIBS_INCS = $(addprefix -I ../../../../../stglibs/,$(addsuffix .lib/include,$(STGLIBS)))
-STGLIBS_
LIB
S = $(addprefix -L ../../../../../stglibs/,$(addsuffix .lib,$(STGLIBS)))
+STGLIBS_
PATH
S = $(addprefix -L ../../../../../stglibs/,$(addsuffix .lib,$(STGLIBS)))
-
LIBS +
= $(addprefix -lstg,$(STGLIBS))
+
STGLIBS_LIBS
= $(addprefix -lstg,$(STGLIBS))
-CXXFLAGS += -fPIC $(STGLIBS_INCS)
-CFLAGS += -fPIC $(STGLIBS_INCS)
+CXXFLAGS += -fPIC $(DEFS) $(SEARCH_DIRS) $(STGLIBS_INCS)
+CFLAGS += -fPIC $(DEFS) $(SEARCH_DIRS) $(STGLIBS_INCS)
+
+ifneq ($(OS),darwin)
LDFLAGS += -shared -Wl,-rpath,$(PREFIX)/usr/lib/stg
LDFLAGS += -shared -Wl,-rpath,$(PREFIX)/usr/lib/stg
+else
+LDFLAGS += -dynamiclib -undefined suppress -flat_namespace -Wl,-rpath,$(PREFIX)/usr/lib/stg
+endif
all: $(PROG)
$(PROG): $(OBJS)
all: $(PROG)
$(PROG): $(OBJS)
- $(CXX) $^ $(
STGLIBS_LIBS) $(LIBS) $(LDFLAG
S) -o $(PROG)
+ $(CXX) $^ $(
LDFLAGS) $(STGLIBS_PATHS) $(STGLIBS_LIBS) $(LIB
S) -o $(PROG)
$(LN) -fs "`pwd`/$(PROG)" $(DIR_MOD)/$(PROG)
clean:
$(LN) -fs "`pwd`/$(PROG)" $(DIR_MOD)/$(PROG)
clean:
@@
-29,9
+34,9
@@
clean:
install: $(PROG)
mkdir -m $(DIR_MODE) -p $(PREFIX)/usr/lib/stg
ifeq ($(DEBUG), yes)
install: $(PROG)
mkdir -m $(DIR_MODE) -p $(PREFIX)/usr/lib/stg
ifeq ($(DEBUG), yes)
- install -
D -
m $(BIN_MODE) -o $(OWNER) $(PROG) $(PREFIX)/usr/lib/stg/$(PROG)
+ install -m $(BIN_MODE) -o $(OWNER) $(PROG) $(PREFIX)/usr/lib/stg/$(PROG)
else
else
- install -
D -
m $(BIN_MODE) -o $(OWNER) -s $(PROG) $(PREFIX)/usr/lib/stg/$(PROG)
+ install -m $(BIN_MODE) -o $(OWNER) -s $(PROG) $(PREFIX)/usr/lib/stg/$(PROG)
endif
uninstall:
endif
uninstall: