git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use correct compiler and flags for sources in libs
[stg.git]
/
projects
/
rscriptd
/
Makefile
diff --git
a/projects/rscriptd/Makefile
b/projects/rscriptd/Makefile
index ff08de0dc08932104a26868b1a446725c6527d0a..a009a5c1d9359af5a6ff868f0f69fbc2935ae76b 100644
(file)
--- a/
projects/rscriptd/Makefile
+++ b/
projects/rscriptd/Makefile
@@
-10,20
+10,14
@@
SRCS = ./main.cpp \
./listener.cpp \
./pidfile.cpp
./listener.cpp \
./pidfile.cpp
-STGLIBS = -lstg
_
logger \
- -lstg
_
common \
- -lstg
_
crypto \
- -ls
cript_
executer \
- -lconffiles
+STGLIBS = -lstglogger \
+ -lstgcommon \
+ -lstgcrypto \
+ -ls
tgscript
executer \
+ -l
stg
conffiles
LIBS += $(LIB_THREAD)
LIBS += $(LIB_THREAD)
-#ifeq ($(OS),linux)
-#LIBS += -ldl
-#else
-#LIBS += -lc
-#endif
-
SEARCH_DIRS = -I $(DIR_INCLUDE)
OBJS = $(notdir $(patsubst %.cpp, %.o, $(patsubst %.c, %.o, $(SRCS))))
SEARCH_DIRS = -I $(DIR_INCLUDE)
OBJS = $(notdir $(patsubst %.cpp, %.o, $(patsubst %.c, %.o, $(SRCS))))
@@
-31,7
+25,7
@@
OBJS = $(notdir $(patsubst %.cpp, %.o, $(patsubst %.c, %.o, $(SRCS))))
CXXFLAGS += -Wall
LDFLAGS += -Wl,-E -L$(DIR_LIB) -Wl,-rpath,$(PREFIX)/usr/lib/stg -Wl,-rpath-link,$(DIR_LIB)
CXXFLAGS += -Wall
LDFLAGS += -Wl,-E -L$(DIR_LIB) -Wl,-rpath,$(PREFIX)/usr/lib/stg -Wl,-rpath-link,$(DIR_LIB)
-vpath %.
so
$(DIR_LIB)
+vpath %.
a
$(DIR_LIB)
.PHONY: all clean distclean libs install uninstall
all: libs $(PROG) ../../Makefile.conf
.PHONY: all clean distclean libs install uninstall
all: libs $(PROG) ../../Makefile.conf
@@
-40,7
+34,7
@@
libs:
$(MAKE) -C $(DIR_LIBSRC)
$(PROG): $(OBJS) $(STGLIBS)
$(MAKE) -C $(DIR_LIBSRC)
$(PROG): $(OBJS) $(STGLIBS)
- $(C
C
) $^ $(LDFLAGS) $(LIBS) -o $(PROG)
+ $(C
XX
) $^ $(LDFLAGS) $(LIBS) -o $(PROG)
clean:
rm -f deps $(PROG) *.o tags *.*~ .OS
clean:
rm -f deps $(PROG) *.o tags *.*~ .OS