summaryrefslogtreecommitdiff
path: root/Makefile
blob: 30c61dd44e2740857f0b8b9612245b9901241e63 (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
CC=gcc
CFLAGS=
#INCLUDE=-I./include 
INCLUDE+=-I../librusb/src
LDFLAGS=
LDFLAGS+=-Lrusb

SOURCES=
SRC_LIB=
OBJ_LIB=
SRC_UTILS=
OBJ_UTILS=

BUILD_DIR=build/

include src/make.mk


OBJECTS=$(SOURCES:.c=.o)

utils: $(DIR)-pre $(OBJ_UTILS)

all: $(OBJECTS)

make: $(OBJECTS)
	echo $(OBJECTS)
	echo $(SRC_LIB)


%.o: %.c
	$(CC) $(CFLAGS) $(INCLUDE) -Wl,-rpath=. -c $< -o $(BUILD_DIR)$@

clean:
	rm -rf build/src/rtl_*
	rm -rf build/src/convenience/*.o