summaryrefslogtreecommitdiff
path: root/v4l2-fimc-m2m-example/Makefile
blob: 53c63812c1245a3074e0ed916f305fae1aead878 (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
# Target root
#TARGETROOT?=
# Toolchain path
TCPATH?=arm-linux-gnueabi-
KERNELPATH?=

CC = ${TCPATH}gcc
AR = "${TCPATH}ar rc"
AR2 = ${TCPATH}ranlib make -j4

INCLUDES = -I$(KERNELPATH)/include -I$(KERNELPATH)/arch/arm/include/
SOURCES = fimc-m2m-f02.c
OBJECTS := $(SOURCES:.c=.o)
EXEC = fimc-m2m-f02
CFLAGS = -Wall -g

all: $(EXEC)

.c.o:
	$(CC) -c $(CFLAGS) $(INCLUDES) $<

$(EXEC): $(OBJECTS)
	$(CC) $(CFLAGS) -o $(EXEC) $(OBJECTS) -lpthread #-L $(TARGETROOT)/usr/lib

clean:
	rm -f *.o $(EXEC)

install:


.PHONY: clean all