forked from analogdevicesinc/no-OS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (37 loc) · 1.05 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
CC = arm-none-eabi-gcc
SKIPDIR = -path ./platform -prune -o \
-path ./axi_core -prune -o \
-path ./rf-transceiver/navassa -prune -o
INCLUDES = -I../include/ \
-I../projects/drivers/util/ \
-I./dac/ad917x/ad917x_api/ \
-I../projects/ad9361/src/ \
-I./adc/ad9208/ad9208_api \
-I./adc/ad9083/ad9083_api \
-I../projects/ad9083/src/uc \
-I./adc/ad9081/api \
-I./axi_core/axi_adc_core \
-I./axi_core/axi_dac_core \
-I./axi_core/spi_engine \
-I./axi_core/axi_dmac \
-I./axi_core/clk_axi_clkgen \
-I./platform/xilinx \
-I../projects/adrv9009/src/devices/adi_hal \
-I../iio \
-I../libraries/iio/libtinyiiod \
-I./display
IIOD_FLAGS += -DTINYIIOD_VERSION_MAJOR=0 \
-DTINYIIOD_VERSION_MINOR=1 \
-DTINYIIOD_VERSION_GIT=0x1234567 \
-DIIOD_BUFFER_SIZE=0x1000 \
-D_USE_STD_INT_TYPES
IIOD_FLAGS += -DIIO_SUPPORT
CFLAGS = -c -Wall -Wformat=0 $(IIOD_FLAGS) $(INCLUDES)
SRCS = $(shell find . $(SKIPDIR) -name '*.c')
OBJS = $(SRCS:.c=.o)
%.o:%.c
@echo CC $(notdir $<)
@$(CC) -c $< $(CFLAGS)
all: $(OBJS)
clean:
rm -f *.o