]> git.stg.codes - stg.git/blobdiff - projects/sgconf/Makefile
Enhanced config serializer.
[stg.git] / projects / sgconf / Makefile
index 297d3e206983bb40c96ce9e9d5ab51e5b4051732..e564b246126d83591a34b6949cdaf87f00aaacba 100644 (file)
@@ -7,7 +7,10 @@ include ../../Makefile.conf
 PROG = sgconf
 
 SRCS = ./main.cpp \
-       ./common_sg.cpp
+       ./common_sg.cpp \
+       ./options.cpp \
+       ./actions.cpp \
+       ./xml.cpp
 
 STGLIBS = conffiles \
           srvconf \
@@ -41,7 +44,11 @@ OBJS = $(notdir $(patsubst %.cpp, %.o, $(patsubst %.c, %.o, $(SRCS))))
 
 CXXFLAGS += $(DEFS) $(STGLIBS_INCS) $(SEARCH_DIRS)
 CFLAGS += $(DEFS) $(STGLIBS_INCS) $(SEARCH_DIRS)
-LDFLAGS += -Wl,-E $(STGLIBS_LIBS)
+LDFLAGS += $(STGLIBS_LIBS)
+
+ifneq ($(OS),darwin)
+LDFLAGS += -Wl,-E
+endif
 
 .PHONY: all clean distclean libs install uninstall install-bin install-data uninstall-bin uninstall-data
 all: libs $(PROG) ../../Makefile.conf