1 include ../../Makefile.conf
11 STGLIBS = -lstgcrypto \
24 SEARCH_DIRS = -I $(DIR_INCLUDE)
26 OBJS = $(notdir $(patsubst %.cpp, %.o, $(patsubst %.c, %.o, $(SRCS))))
29 LDFLAGS += -Wl,-E -L$(DIR_LIB) -Wl,-rpath,$(PREFIX)/usr/lib/stg -Wl,-rpath-link,$(DIR_LIB)
33 .PHONY: all clean distclean libs plugins
34 all: libs plugins $(PROG) ../../Makefile.conf
37 $(MAKE) -C $(DIR_LIBSRC)
40 $(MAKE) -C $(DIR_PLUGINS)
43 $(CXX) $(OBJS) $(LDFLAGS) $(LIBS) $(STGLIBS) -o $(PROG)
46 rm -f deps $(PROG) *.o *.*~
47 $(MAKE) -C $(DIR_LIBSRC) clean
48 $(MAKE) -C $(DIR_PLUGINS) clean
51 rm -f ../../Makefile.conf
53 ifneq ($(MAKECMDGOALS),distclean)
54 ifneq ($(MAKECMDGOALS),clean)
55 ifneq ($(MAKECMDGOALS),uninstall)
61 deps: $(SRCS) ../../Makefile.conf
62 $(MAKE) -C $(DIR_LIBSRC) includes
64 for file in $(SRCS); do\
65 echo "`$(CC) $(CXXFLAGS) $(SEARCH_DIRS) -MM $$file` Makefile ../../Makefile.conf" >> deps ;\
66 echo -e '\t$$(CC) -c $$< $(CXXFLAGS) $(SEARCH_DIRS) $(DEFS)' >> deps ;\