summaryrefslogtreecommitdiff
path: root/Radio/HW/RtlSdr/libusb/make.mk
diff options
context:
space:
mode:
authorArturs Artamonovs <arturs.artamonovs@protonmail.com>2024-11-01 08:38:25 +0000
committerArturs Artamonovs <arturs.artamonovs@protonmail.com>2024-11-01 08:38:25 +0000
commitca50c0f64f1b2fce46b4cb83ed111854bac13852 (patch)
tree92713a6fb08559f6f7ddd4e03781572eba0a7f02 /Radio/HW/RtlSdr/libusb/make.mk
parente3a7f5bafec6715cd11555c39925665c78029dd9 (diff)
downloadPrySDR-ca50c0f64f1b2fce46b4cb83ed111854bac13852.tar.gz
PrySDR-ca50c0f64f1b2fce46b4cb83ed111854bac13852.zip
rtlsdr library example compiles
Diffstat (limited to 'Radio/HW/RtlSdr/libusb/make.mk')
-rw-r--r--Radio/HW/RtlSdr/libusb/make.mk22
1 files changed, 22 insertions, 0 deletions
diff --git a/Radio/HW/RtlSdr/libusb/make.mk b/Radio/HW/RtlSdr/libusb/make.mk
new file mode 100644
index 0000000..acf8f12
--- /dev/null
+++ b/Radio/HW/RtlSdr/libusb/make.mk
@@ -0,0 +1,22 @@
+DIR=src
+
+SRC_UTILS_PRE += $(wildcard $(DIR)/os/*.c)
+SRC_UTILS += $(wildcard $(DIR)/*.c)
+OBJ_UTILS += $(SRC_UTILS:.c=.o)
+OBJ_UTILS_PRE += $(SRC_UTILS_PRE:.c=.o)
+LDFLAGS_UTILS =
+INCLUDE = -I./include -I./src
+CFLAGS = -fPIC
+
+build-src: src-pre
+ echo $(SRC_UTILS_PRE)
+ echo $(SRC_UTILS)
+
+$(DIR)-pre: $(OBJ_UTILS_PRE) $(OBJ_UTILS)
+
+$(DIR)/os/%.o: $(DIR)/os/%.c
+ $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $(BUILD_DIR)$@
+
+$(DIR)/%.o: $(DIR)/%.c
+ echo "B"
+ $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $(BUILD_DIR)$@ $(LDFLAGS_UTILS) \ No newline at end of file