summaryrefslogtreecommitdiff
path: root/util_tx_test/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'util_tx_test/Makefile')
-rw-r--r--util_tx_test/Makefile36
1 files changed, 36 insertions, 0 deletions
diff --git a/util_tx_test/Makefile b/util_tx_test/Makefile
new file mode 100644
index 0000000..880b10d
--- /dev/null
+++ b/util_tx_test/Makefile
@@ -0,0 +1,36 @@
+### Application-specific constants
+
+APP_NAME := util_tx_test
+
+### Constant symbols
+
+CC := $(CROSS_COMPILE)gcc
+AR := $(CROSS_COMPILE)ar
+
+CFLAGS := -O2 -Wall -Wextra -std=c99 -Iinc -I.
+
+OBJDIR = obj
+INCLUDES = $(wildcard inc/*.h)
+
+### General build targets
+
+all: $(APP_NAME)
+
+clean:
+ rm -f $(OBJDIR)/*.o
+ rm -f $(APP_NAME)
+
+### Sub-modules compilation
+
+$(OBJDIR):
+ mkdir -p $(OBJDIR)
+
+$(OBJDIR)/%.o: src/%.c $(INCLUDES) | $(OBJDIR)
+ $(CC) -c $(CFLAGS) $< -o $@
+
+### Main program assembly
+
+$(APP_NAME): $(OBJDIR)/$(APP_NAME).o $(OBJDIR)/base64.o
+ $(CC) $< $(OBJDIR)/base64.o -o $@
+
+### EOF