summaryrefslogtreecommitdiff
path: root/test/Makefile
blob: c447b553019bd7a1bc0a8e4a678625fc6da3c228 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
CC=gcc
CFLAGS=-std=gnu11 -I../ 
#LDFLAGS= `pkg-config --libs libusb` -L../../../r820t -lr820t -Wl,-rpath=../../../r820t
LDFLAGS=`pkg-config --libs libusb` `sdl2-config --cflags --libs` -lrtlsdr -lm ../radiola.o -lasound
SOURCE = $(wildcard *.c)
OBJECTS = 
BIN = $(SOURCE:.c=)


%: %.c
	$(CC) $(LDFLAGS) $(CFLAGS) $<  -o $@ 

%.o: %.c
	$(CC) $(CFLAGS) $(INCLUDE) -c $< -o $(BUILD_DIR)$@

make: $(BIN)

clean:
	rm -f $(BIN)