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)
41 $(PROG): $(OBJS) $(STGLIBS)
42 $(CC) $^ $(LDFLAGS) -o $(PROG) $(LIBS)
45 rm -f deps $(PROG) *.o tags *.*~ .OS
51 $(MAKE) -C $(DIR_LIBSRC) clean
54 rm -f ../../Makefile.conf
56 ifneq ($(MAKECMDGOALS),distclean)
57 ifneq ($(MAKECMDGOALS),clean)
58 ifneq ($(MAKECMDGOALS),uninstall)
64 deps: $(SRCS) ../../Makefile.conf
65 $(MAKE) -C $(DIR_LIBSRC) includes
68 for file in $(SRCS); do\
69 echo "`$(CC) $(CXXFLAGS) $(SEARCH_DIRS) -MM $$file` Makefile" >> deps ;\
70 echo -e '\t$$(CC) -c $$< $(CXXFLAGS) $(SEARCH_DIRS) $(DEFS)' >> deps ;\