Changeset 31


Ignore:
Timestamp:
03/23/2009 03:34:23 PM (11 years ago)
Author:
dave
Message:

makefile improvements from Marek@WRUT

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • QMUL/trunk/DistanceCheck/Makefile

    r26 r31  
    11CC = g++ 
    2 CV_INCLUDE_PATH = /usr/local/include/opencv 
    3 CV_LINK_PATH = /usr/local/lib 
    4 LIBS = -lcv -lcxcore -lhighgui 
    5 CCFLAGS = -I$(CV_INCLUDE_PATH) -L$(CV_LINK_PATH) -ggdb -Wall -O3 -ffast-math -Wno-unused 
     2CFLAGS = `pkg-config --cflags opencv` -ggdb -Wall -O3 -ffast-math -Wno-unused  
     3CXXFLAGS = `pkg-config --cflags opencv` -ggdb -Wall -O3 -ffast-math -Wno-unused  
     4LDFLAGS =  `pkg-config --libs opencv`  
    65 
    76all: DistanceCheck 
    87 
    98DistanceCheck: distanceCheck.o Face.o stdafx.o 
    10         $(CC) $(CCFLAGS) $(LIBS) stdafx.o distanceCheck.o Face.o -o DistanceCheck 
     9        $(CC) $(LDFLAGS) stdafx.o distanceCheck.o Face.o -o DistanceCheck 
    1110 
    1211distanceCheck.o: src/distanceCheck.cpp 
    13         $(CC) $(CCFLAGS) -c src/distanceCheck.cpp 
     12        $(CC) $(CXXFLAGS) -c src/distanceCheck.cpp 
    1413 
    1514Face.o: src/Face.cpp 
    16         $(CC) $(CCFLAGS) -c src/Face.cpp 
     15        $(CC) $(CXXFLAGS) -c src/Face.cpp 
    1716 
    1817stdafx.o: src/stdafx.cpp 
    19         $(CC) $(CCFLAGS) -c src/stdafx.cpp 
     18        $(CC) $(CXXFLAGS) -c src/stdafx.cpp 
    2019 
    2120clean: 
  • QMUL/trunk/DistanceCheck/src/stdafx.h

    r26 r31  
    1313#include <tchar.h> 
    1414#endif                                           
    15  
  • foam/trunk/simple-faceident/Makefile

    r27 r31  
    11CC = g++ 
    2 CV_INCLUDE_PATH = /usr/local/include/opencv 
    3 CV_LINK_PATH = /usr/local/lib 
    4 ACE_LINK_PATH = /usr/lib 
    5 LIBS = -lcv -lcxcore -lhighgui -lYARP_dev -lYARP_sig -lYARP_OS -lACE 
    6 CCFLAGS = -ggdb -Wall -O3 -ffast-math -Wno-unused -fPIC 
    7 CCCOMMANDS = -I$(CV_INCLUDE_PATH) -L$(CV_LINK_PATH) -L$(ACE_LINK_PATH) $(CCFLAGS)  
     2CFLAGS = `pkg-config --cflags opencv` -ggdb -Wall -O3 -ffast-math -Wno-unused  
     3CXXFLAGS = `pkg-config --cflags opencv` -ggdb -Wall -O3 -ffast-math -Wno-unused  
     4LDFLAGS =  `pkg-config --libs opencv` -lYARP_dev -lYARP_sig -lYARP_OS -lACE 
    85 
    96all: simple-faceident 
    107 
    118simple-faceident: main.o FaceBank.o ImageUtils.o 
    12         $(CC) $(CCCOMMANDS) main.o FaceBank.o ImageUtils.o -rdynamic -o simple-faceident $(LIBS) 
     9        $(CC) main.o FaceBank.o ImageUtils.o -rdynamic -o simple-faceident $(LDFLAGS) 
    1310 
    1411main.o: src/main.cpp 
    15         $(CC) $(CCCOMMANDS) -c src/main.cpp 
     12        $(CC) $(CXXFLAGS) -c src/main.cpp 
    1613 
    1714FaceBank.o: src/FaceBank.cpp 
    18         $(CC) $(CCCOMMANDS) -c src/FaceBank.cpp 
     15        $(CC) $(CXXFLAGS) -c src/FaceBank.cpp 
    1916 
    2017ImageUtils.o: src/ImageUtils.cpp 
    21         $(CC) $(CCCOMMANDS) -c src/ImageUtils.cpp 
     18        $(CC) $(CXXFLAGS) -c src/ImageUtils.cpp 
    2219 
    2320clean: 
Note: See TracChangeset for help on using the changeset viewer.