1 include ../../Makefile.conf
11 STGLIBS = -lstgcrypto \
25 SEARCH_DIRS = -I $(DIR_INCLUDE)
27 OBJS = $(notdir $(patsubst %.cpp, %.o, $(patsubst %.c, %.o, $(SRCS))))
30 LDFLAGS += -Wl,-E -L$(DIR_LIB) -Wl,-rpath,$(PREFIX)/usr/lib/stg -Wl,-rpath-link,$(DIR_LIB)
34 .PHONY: all clean distclean libs plugins
35 all: libs plugins $(PROG) ../../Makefile.conf
38 $(MAKE) -C $(DIR_LIBSRC)
41 $(MAKE) -C $(DIR_PLUGINS)
44 $(CXX) $(OBJS) $(LDFLAGS) $(LIBS) $(STGLIBS) -o $(PROG)
47 rm -f deps $(PROG) *.o *.*~
48 $(MAKE) -C $(DIR_LIBSRC) clean
49 $(MAKE) -C $(DIR_PLUGINS) clean
52 rm -f ../../Makefile.conf
54 ifneq ($(MAKECMDGOALS),distclean)
55 ifneq ($(MAKECMDGOALS),clean)
56 ifneq ($(MAKECMDGOALS),uninstall)
62 deps: $(SRCS) ../../Makefile.conf
63 $(MAKE) -C $(DIR_LIBSRC) includes
65 for file in $(SRCS); do\
66 echo "`$(CC) $(CXXFLAGS) $(SEARCH_DIRS) -MM $$file` Makefile ../../Makefile.conf" >> deps ;\
67 echo -e '\t$$(CC) -c $$< $(CXXFLAGS) $(SEARCH_DIRS) $(DEFS)' >> deps ;\