blob: 849e367a2eb6183ff703f498ed2e1c5f77411aed (
plain)
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
|
CROSS_COMPILE ?=
KDIR ?=
CC := $(CROSS_COMPILE)gcc
CFLAGS := -O2 -W -Wall -I$(KDIR)/usr/include
LDFLAGS := -Lisp
LIBS := -lomap3isp -lrt
OBJ_LIVE := live.o videoout.o
OBJ_SNAP := snapshot.o
%.o : %.c
$(CC) $(CFLAGS) -c -o $@ $<
all: __isp live snapshot
live: $(OBJ_LIVE) isp/libomap3isp.so
$(CC) $(LDFLAGS) -o $@ $(OBJ_LIVE) $(LIBS)
snapshot: $(OBJ_SNAP) isp/libomap3isp.so
$(CC) $(LDFLAGS) -o $@ $(OBJ_SNAP) $(LIBS)
__isp:
$(MAKE) -C isp CROSS_COMPILE=$(CROSS_COMPILE) KDIR=$(KDIR)
clean:
$(MAKE) -C isp clean
-$(RM) *.o
-$(RM) live
-$(RM) snapshot
|