-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (29 loc) · 768 Bytes
/
Makefile
File metadata and controls
41 lines (29 loc) · 768 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
34
35
36
37
38
39
40
VERSION=0.1
PACKAGE=uvcstreamer
HEADERS=$(PACKAGE).h \
input.h output.h utils.h \
input_uvc.h v4l2uvc.h huffman.h jpeg_utils.h dynctrl.h \
httpd.h
OBJECTS=$(PACKAGE).o utils.o \
input_uvc.o v4l2uvc.o jpeg_utils.o dynctrl.o \
httpd.o
CROSS_COMPILE=
# arm-none-linux-gnueabi-
STRIP=$(CROSS_COMPILE)strip
CC=$(CROSS_COMPILE)gcc
CXX=$(CROSS_COMPILE)g++
ADDITIONAL_OBJECTS+=
CFLAGS=-Wall -O1 -DNDEBUG
#-DDEBUG
LDFLAGS=-ljpeg -lpthread
#CFLAGS += -DUSE_LIBV4L2
#LDFLAGS += -lv4l2
all: $(PACKAGE) strip
$(PACKAGE)$(SUFFIX): $(OBJECTS)
$(CC) $(LDFLAGS) -o $@ $^ $(ADDITIONAL_OBJECTS)
%$(SUFFIX).o: %.c $(HEADERS) Makefile
$(CC) $(CFLAGS) -o $@ -c $<
strip: $(PACKAGE)$(SUFFIX)
$(STRIP) $^
clean:
rm -f $(OBJECTS) $(PACKAGE)$(SUFFIX)