summaryrefslogtreecommitdiff
path: root/utils/make.mk
diff options
context:
space:
mode:
authorFreeArtMan <=>2015-09-19 14:36:47 +0100
committerFreeArtMan <=>2015-09-19 14:36:47 +0100
commitf8b84cf48099fb020b1174c8cc6195dde42308c3 (patch)
tree56a2ecbb7456c047d404c2b88c57e3d3be057ec7 /utils/make.mk
downloadr820t-f8b84cf48099fb020b1174c8cc6195dde42308c3.tar.gz
r820t-f8b84cf48099fb020b1174c8cc6195dde42308c3.zip
Initial
Diffstat (limited to 'utils/make.mk')
-rw-r--r--utils/make.mk15
1 files changed, 15 insertions, 0 deletions
diff --git a/utils/make.mk b/utils/make.mk
new file mode 100644
index 0000000..645ee7a
--- /dev/null
+++ b/utils/make.mk
@@ -0,0 +1,15 @@
+DIR=utils
+
+SRC_UTILS += $(wildcard $(DIR)/*.c)
+SRC_UTILS_PRE += $(wildcard $(DIR)/convenience/*.c)
+OBJ_UTILS += $(SRC_UTILS:.c=)
+OBJ_UTILS_PRE += $(SRC_UTILS_PRE:.c=.o)
+LDFLAGS_UTILS = -pthread -L/tmp -lr820t -lm
+
+$(DIR)-pre: $(OBJ_UTILS_PRE)
+
+$(DIR)/convenience/%.o: $(DIR)/convenience/%.c
+ $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $(BUILD_DIR)$@
+
+$(DIR)/%: $(DIR)/%.c
+ $(CC) $(CFLAGS) $(INCLUDE) $(BUILD_DIR)$(OBJ_UTILS_PRE) $< -o $(BUILD_DIR)$@ $(LDFLAGS_UTILS) \ No newline at end of file