aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorkj_sh6042026-05-26 20:25:55 -0400
committerkj_sh6042026-05-26 20:25:55 -0400
commita6aa3c4c66199b48bdeadeaf23f86b8609be9db0 (patch)
treedd1d6039957f1f9a843b3b20d2e62a2445cadb9a /Makefile
parent7231a3052a13c1642c399619b68f794e05d544e0 (diff)
feat: initial implementation
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..21c4e74
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+CC ?= cc
+PKG_CONFIG ?= pkg-config
+PKGS = gtk+-3.0 gio-2.0
+CFLAGS ?= -O2 -Wall -Wextra -Wpedantic -std=c11
+CPPFLAGS += $(shell $(PKG_CONFIG) --cflags $(PKGS))
+LDLIBS += $(shell $(PKG_CONFIG) --libs $(PKGS))
+
+TARGET = dapp
+SRC = src/dapp.c
+
+all: $(TARGET)
+
+$(TARGET): $(SRC)
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(SRC) -o $@ $(LDLIBS)
+
+clean:
+ rm -f $(TARGET)
+
+.PHONY: all clean