1 include ../../Makefile.conf
9 STGLIBS = -lstgcrypto \
23 SEARCH_DIRS = -I $(DIR_INCLUDE)
25 OBJS = $(notdir $(patsubst %.cpp, %.o, $(patsubst %.c, %.o, $(SRCS))))
28 LDFLAGS += -Wl,-E -L$(DIR_LIB) -Wl,-rpath,$(PREFIX)/usr/lib/stg -Wl,-rpath-link,$(DIR_LIB)
32 .PHONY: all clean distclean libs plugins
33 all: libs plugins $(PROG) ../../Makefile.conf
36 $(MAKE) -C $(DIR_LIBSRC)
39 $(MAKE) -C $(DIR_PLUGINS)
42 $(CXX) $(OBJS) $(LDFLAGS) $(LIBS) $(STGLIBS) -o $(PROG)
45 rm -f deps $(PROG) *.o *.*~
46 $(MAKE) -C $(DIR_LIBSRC) clean
47 $(MAKE) -C $(DIR_PLUGINS) clean
50 rm -f ../../Makefile.conf
52 ifneq ($(MAKECMDGOALS),distclean)
53 ifneq ($(MAKECMDGOALS),clean)
54 ifneq ($(MAKECMDGOALS),uninstall)
60 deps: $(SRCS) ../../Makefile.conf
61 $(MAKE) -C $(DIR_LIBSRC) includes
63 for file in $(SRCS); do\
64 echo "`$(CC) $(CXXFLAGS) $(SEARCH_DIRS) -MM $$file` Makefile ../../Makefile.conf" >> deps ;\
65 echo -e '\t$$(CC) -c $$< $(CXXFLAGS) $(SEARCH_DIRS) $(DEFS)' >> deps ;\