aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authornirav <nirav@teisuu.com>2018-08-23 16:36:08 +0530
committerDandelion <nirav@teisuu.com>2018-08-23 16:36:08 +0530
commitb4bda2a8177a33b2a3a302c7652d92deb6b785e5 (patch)
tree20e0bfe37a01c3a20030ed11050914afd16b620a /makefile
downloadim-b4bda2a8177a33b2a3a302c7652d92deb6b785e5.tar.gz
im-b4bda2a8177a33b2a3a302c7652d92deb6b785e5.zip
Initial Commit
Diffstat (limited to 'makefile')
-rw-r--r--makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/makefile b/makefile
new file mode 100644
index 0000000..f50f036
--- /dev/null
+++ b/makefile
@@ -0,0 +1,34 @@
+RM=rm -f
+INSTALL=install
+
+CFLAGS=-o2 -pipe -Wall -std=c11 $(shell pkg-config --cflags gtk+-3.0)
+LDFLAGS=$(shell pkg-config --libs gtk+-3.0)
+# GLIB_COMPILE_RESOURCES=$(shell pkg-config --variable=glib_compile_resources gio-2.0)
+
+PREFIX=/usr
+BINDIR=$(PREFIX)/bin
+OBJECTS=main.o
+# RESOURCES=resources.c
+
+all: qwe
+
+qwe: $(OBJECTS)
+ $(CC) -o qwe $(OBJECTS) $(LDFLAGS)
+
+.c.o:
+ $(CC) -c $(CFLAGS) -o $@ $<
+
+# resources.c: qwe.gresource.xml window.ui
+# $(GLIB_COMPILE_RESOURCES) qwe.gresource.xml --target=$(RESOURCES) --sourcedir=. --generate-source
+
+clean:
+ $(RM) $(OBJECTS) $(RESOURCES) qwe
+
+install: qwe
+ $(INSTALL) -m0755 qwe $(BINDIR)
+
+uninstall:
+ $(RM) $(BINDIR)/qwe
+
+run: qwe
+ ./qwe