diff options
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 34 |
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 |