-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (25 loc) · 883 Bytes
/
Makefile
File metadata and controls
33 lines (25 loc) · 883 Bytes
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
32
33
#testing the svn connection
#REF: chatGPT help me recode this one
#start the Makefile
CC = gcc
CFLAGS=-Wall -Wextra -pedantic -std=gnu99
OPENCV_LIBS=-L/usr/lib64 -lopencv_core -lopencv_imgcodecs -lopencv_objdetect -lopencv_imgproc
PTHREAD_LIBS=-lpthread
all : uqfaceclient uqfacedetect
#client program
uqfaceclient: uqfaceclient.o protocol.o
$(CC) $(CFLAGS) uqfaceclient.o protocol.o -o uqfaceclient
uqfaceclient.o: uqfaceclient.c
$(CC) $(CFLAGS) -c uqfaceclient.c -o uqfaceclient.o
#server program
uqfacedetect: uqfacedetect.o protocol.o
$(CC) $(CFLAGS) uqfacedetect.o protocol.o -o uqfacedetect $(OPENCV_LIBS) $(PTHREAD_LIBS)
uqfacedetect.o: uqfacedetect.c
$(CC) $(CFLAGS) -c uqfacedetect.c -o uqfacedetect.o
#protocol share lib
protocol.o: protocol.c protocol.h
$(CC) $(CFLAGS) -c protocol.c -o protocol.o
#clean file
clean:
rm -f *.o uqfacedetect
.PHONY: all clean