aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authornirav <nirav@teisuu.com>2018-09-09 16:50:46 +0530
committerDandelion <nirav@teisuu.com>2018-09-09 17:00:29 +0530
commit0e18c9651e8a2f01a8ca3fe0fda7c7db7832d5dc (patch)
tree07ebf86a5f8b700de84911f3126c4147014147a9 /Makefile
parenta400e0d1ac47ccbfffdf31f064bbd34e7bd804c5 (diff)
downloadim-0e18c9651e8a2f01a8ca3fe0fda7c7db7832d5dc.tar.gz
im-0e18c9651e8a2f01a8ca3fe0fda7c7db7832d5dc.zip
Added desktop file, updated makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 3230804..d99e7df 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,13 @@
CC?=cc
INSTALL?=install
-CFLAGS?=-o2 -pipe -Wall -std=c11 $(shell pkg-config --cflags gtk+-3.0)
-LDFLAGS?=$(shell pkg-config --libs gtk+-3.0)
-PREFIX?=/usr/local
-BINDIR?=$(PREFIX)/bin
+CFLAGS?=-o2 -pipe
+CFLAGS+=-Wall -Wextra -Wno-unused-parameter
+CFLAGS+=$(shell pkg-config --cflags gtk+-3.0)
+LDFLAGS+=$(shell pkg-config --libs gtk+-3.0)
+PREFIX?=/usr
+BINDIR=$(PREFIX)/bin
+APPDIR=$(PREFIX)/share/applications
SRCDIR=src
OUTDIR=build
@@ -27,10 +30,12 @@ $(OUTDIR)/%.o: $(SRCDIR)/%.c
clean:
rm -rf $(OUTDIR) qwe
-install: qwe
+install: qwe qwe.desktop
$(INSTALL) -m0755 qwe $(BINDIR)
+ $(INSTALL) -m0644 qwe.desktop $(APPDIR)/qwe.desktop
uninstall:
rm -rf $(BINDIR)/qwe
+ rm -rf $(APPDIR)/qwe.desktop
.PHONY: all clean install uninstall