blob: 715f398708a7aa0dda8dff38ddef3ad408486aa8 (
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
|
# Target root
TARGETROOT?=
# Toolchain path
TCPATH?=arm-linux-gnueabi-
CC = ${TCPATH}gcc
AR = "${TCPATH}ar rc"
AR2 = ${TCPATH}ranlib make -j4
INCLUDES = -I$(TARGETROOT)/include
SOURCES = test-jpeg.c
OBJECTS := $(SOURCES:.c=.o)
EXEC = test-jpeg
CFLAGS = -Wall -g
all: $(EXEC)
.c.o:
$(CC) -c $(CFLAGS) $(INCLUDES) $<
$(EXEC): $(OBJECTS)
$(CC) $(CFLAGS) -g -O0 -o $(EXEC) $(OBJECTS) -lpthread
clean:
rm -f *.o $(EXEC)
install:
.PHONY: clean all
|