1 ###############################################################################
2 # $Id: Makefile,v 1.3 2009/03/03 15:49:35 faust Exp $
3 ###############################################################################
15 DIR_INCLUDE = ../../../../../include
16 DIR_LIB = ../../../../../lib
25 SEARCH_DIRS = -I $(DIR_INCLUDE)
27 OBJS = $(notdir $(patsubst %.cpp, %.o, $(patsubst %.c, %.o, $(SRCS))))
29 CXXFLAGS = -g3 -Wall -fPIC
38 $(PROG): $(OBJS) $(LIBS)
39 $(CC) $^ $(LDFLAGS) -o $(PROG)
42 rm -f deps $(PROG) *.o tags *.*~
51 ifneq ($(MAKECMDGOALS),clean)
52 ifneq ($(MAKECMDGOALS),uninstall)
59 for file in $(SRCS); do\
60 echo "`$(CC) $(CXXFLAGS) $(DEFS) $(SEARCH_DIRS) -MM $$file` Makefile" >> deps ;\
61 echo -e '\t$$(CC) -c $$< $(CXXFLAGS) $(SEARCH_DIRS) $(DEFS)' >> deps ;\