aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
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