Changeset 80


Ignore:
Timestamp:
05/08/2009 02:09:22 PM (11 years ago)
Author:
dave
Message:

new makefile and renamed stuff

Location:
foam/trunk/experiments
Files:
3 added
2 edited
2 moved

Legend:

Unmodified
Added
Removed
  • foam/trunk/experiments/Makefile

    r72 r80  
     1TARGET  := test 
     2 
     3SRCS    := src/main.cpp\ 
     4        src/Image.cpp\ 
     5        src/Rendering.cpp 
     6 
     7CCFLAGS = `pkg-config --cflags opencv` -ggdb -Wall -O3 -ffast-math -Wno-unused -DTIXML_USE_STL  
     8LDFLAGS =  
     9LIBS    = `pkg-config --libs opencv` -lYARP_dev -lYARP_sig -lYARP_OS -lACE 
     10 
    111CC = g++ 
    2 CXXFLAGS = `pkg-config --cflags opencv` -ggdb -Wall -O3 -ffast-math -Wno-unused  
    3 LDFLAGS =  `pkg-config --libs opencv`  
     12OBJS    := ${SRCS:.cpp=.o}  
     13DEPS    := ${SRCS:.cpp=.dep}  
     14XDEPS   := $(wildcard ${DEPS})  
    415 
    5 all: simple-faceident 
     16.PHONY: all clean distclean  
     17all:: ${TARGET}  
    618 
    7 simple-faceident: main.o ImageUtils.o 
    8         $(CC) main.o ImageUtils.o -rdynamic -o exp $(LDFLAGS) 
     19ifneq (${XDEPS},)  
     20include ${XDEPS}  
     21endif  
    922 
    10 main.o: src/main.cpp 
    11         $(CC) $(CXXFLAGS) -c src/main.cpp 
     23${TARGET}: ${OBJS}  
     24        ${CC} ${LDFLAGS} -o $@ $^ ${LIBS} 
    1225 
     26${OBJS}: %.o: %.cpp %.dep  
     27        ${CC} ${CCFLAGS} -o $@ -c $<  
    1328 
    14 ImageUtils.o: src/ImageUtils.cpp 
    15         $(CC) $(CXXFLAGS) -c src/ImageUtils.cpp 
     29${DEPS}: %.dep: %.cpp Makefile  
     30        ${CC} ${CCFLAGS} -MM $< > $@  
    1631 
    17 clean: 
    18         rm -rf *.o exp 
     32clean::  
     33        -rm -f *~ src/*.o ${TARGET}  
    1934 
     35distclean:: clean 
    2036 
  • foam/trunk/experiments/src/Image.cpp

    r79 r80  
    1515// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 
    1616 
    17 #include "ImageUtils.h" 
     17#include "Image.h" 
    1818 
    1919#include <iostream> 
  • foam/trunk/experiments/src/main.cpp

    r79 r80  
    1818#endif 
    1919 
    20 #include "ImageUtils.h" 
     20#include "Image.h" 
    2121 
    2222static CvMemStorage* storage = 0; 
Note: See TracChangeset for help on using the changeset viewer.