blob: 2388da1c12cc2de52c9665b6f294baef2689da7d (
plain) (
blame)
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
|
PROJECT=r820t
CC=gcc
CFLAGS=
INCLUDE=-I./include
INCLUDE+=`pkg-config --cflags libusb`
LDFLAGS=
LDFLAGS+=`pkg-config --libs libusb`
SOURCES=
SRC_LIB=
OBJ_LIB=
SRC_UTILS=
OBJ_UTILS=
BUILD_DIR=build/
include src/make.mk
include utils/make.mk
OBJECTS=$(SOURCES:.c=.o)
lib: src-lib
utils: $(DIR)-pre $(OBJ_UTILS)
all: $(OBJECTS)
make: $(OBJECTS)
echo $(OBJECTS)
%.o: %.c
$(CC) $(CFLAGS) $(INCLUDE) -c $< -o $(BUILD_DIR)$@
clean:
rm -f *.a
rm -f *.so
rm -f *.so.1
rm -f build/src/*.o
rm -f build/utils/rtl_*
rm -f build/utils/convenience/*.o
|