summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 12 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index a7ff439..e80a611 100644
--- a/Makefile
+++ b/Makefile
@@ -1,23 +1,32 @@
-libs := libusb-1.0 libpng16 sdl2 SDL2_ttf
+libs := libusb-1.0 libpng16 gtk+-3.0
CFLAGS := -g -Wall $(shell pkg-config $(libs) --cflags)
CPPFLAGS := -MMD
LDLIBS := $(shell pkg-config $(libs) --libs)
+GLIB_COMPILE_RESOURCES = \
+ $(shell pkg-config --variable=glib_compile_resources gio-2.0)
SOURCES := \
device.c \
image.c \
- live.c \
+ gui.c \
+ gui_app.c \
+ gui_app_window.c \
+ gui_resources.c \
main.c \
moticam.c \
options.c \
+ usb_source.c \
utils.c
all: camicro
+gui_resources.c: gui_app.gresource.xml window.ui
+ $(GLIB_COMPILE_RESOURCES) $< --target=$@ --sourcedir=. --generate-source
+
camicro: $(SOURCES:%.c=%.o)
$(LINK.c) $^ $(LOADLIBES) $(LDLIBS) -o $@
clean:
- rm -f camicro $(SOURCES:%.c=%.o)
+ rm -f camicro $(SOURCES:%.c=%.o) gui_resources.c
-include $(SOURCES:%.c=%.d)