-
Notifications
You must be signed in to change notification settings - Fork 44
/
makefile
executable file
·31 lines (22 loc) · 835 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
#-------------------------------------------------------------
# imgcomp makefile for Linux (compile on raspberry pi)
# Matthias Wandel 2023
#-------------------------------------------------------------
OBJ=obj
SRC=src
# with debug:
#CFLAGS:= $(CFLAGS) -O3 -Wall -g
CFLAGS:= $(CFLAGS) -std=c99 -O3 -Wall
all: objdir imgcomp
objdir:
@mkdir -p obj
objs = $(OBJ)/main.o $(OBJ)/config.o $(OBJ)/compare.o $(OBJ)/compare_util.o $(OBJ)/jpeg2mem.o \
$(OBJ)/jpgfile.o $(OBJ)/exif.o $(OBJ)/start_camera_prog.o $(OBJ)/util.o $(OBJ)/send_udp.o $(OBJ)/exposure.o
$(OBJ)/jpgfile.o $(OBJ)/exif.o $(OBJ)/start_camera_prog.o: $(SRC)/jhead.h
$(OBJ)/main.o $(OBJ)/config.o: $(SRC)/config.h
$(OBJ)/%.o:$(SRC)/%.c $(SRC)/imgcomp.h
${CC} $(CFLAGS) -c $< -o $@
imgcomp: $(objs)
${CC} -o imgcomp $(objs) -ljpeg -lm
clean:
rm -f $(objs) imgcomp