aboutsummaryrefslogtreecommitdiff
path: root/confui
diff options
context:
space:
mode:
Diffstat (limited to 'confui')
-rw-r--r--confui/main.c7
-rw-r--r--confui/makefile24
2 files changed, 31 insertions, 0 deletions
diff --git a/confui/main.c b/confui/main.c
new file mode 100644
index 0000000..1be969b
--- /dev/null
+++ b/confui/main.c
@@ -0,0 +1,7 @@
+#include <stdio.h>
+
+int main() {
+ printf("hello world!\n");
+
+ return 0;
+}
diff --git a/confui/makefile b/confui/makefile
new file mode 100644
index 0000000..e646524
--- /dev/null
+++ b/confui/makefile
@@ -0,0 +1,24 @@
+CC = gcc
+LD = gcc
+RM = rm -f
+CFLAGS =
+LFLAGS =
+TARGET = bts
+
+SRCS := $(wildcard *.c)
+OBJS := $(patsubst %.c,%.o, $(SRCS))
+
+all: $(TARGET)
+
+%.o: %.c
+ $(CC) -c $(CFLAGS) $< -o $@
+
+$(TARGET): $(OBJS)
+ $(LD) $^ $(LFLAGS) -o $@
+
+clean:
+ $(RM) $(TARGET) $(OBJS)
+
+compile_commands: clean
+ compiledb make
+