-
Notifications
You must be signed in to change notification settings - Fork 7
/
makefile
35 lines (19 loc) · 617 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
CC = g++
INCDIR = /opt/local/include
CFLAGS = -Wall \
-I/$(INCDIR) \
-I. -I./hotelling_t_square_test
LIBS = -lopencv_core -lopencv_highgui -lopencv_objdetect -lopencv_imgproc -lopencv_video -lopencv_contrib -lopencv_nonfree -lopencv_features2d
#LIBS = -lboost_unit_test_framework
OBJS = $(SRCS:.c=.o)
PROGRAM = cv_detect_laser_test.exe
#all: $(PROGRAM) test
all: $(PROGRAM)
%.exe: %.cpp cv_detect_laser.hpp
$(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) -o $@ $<
%.exe: %.c
gcc $(CFLAGS) $(LDFLAGS) $(LIBS) -o $@ $<
clean:
rm -f *.o *~ $(PROGRAM)
test : $(PROGRAM)
./cv_detect_laser.exe