2021-02-06 20:50:04 +01:00
|
|
|
prefix=/usr/local
|
|
|
|
|
2021-01-15 19:49:04 +01:00
|
|
|
CC=gcc
|
2021-02-01 01:35:59 +01:00
|
|
|
CFLAGS=-g -O2 -Wall -D_REENTRANT `pkg-config --cflags gtk+-3.0 libusb-1.0 libjpeg libcjson`
|
|
|
|
LIBS=`pkg-config --libs gtk+-3.0 libusb-1.0 libjpeg libcjson` -lm
|
2021-01-15 19:49:04 +01:00
|
|
|
|
2021-01-20 00:50:01 +01:00
|
|
|
OBJ=flirgtk.o cam-thread.o cairo_jpg/src/cairo_jpg.o
|
2021-01-15 19:49:04 +01:00
|
|
|
PRG=flirgtk
|
|
|
|
|
|
|
|
all: $(PRG)
|
|
|
|
|
2021-02-06 20:50:04 +01:00
|
|
|
$(PRG): $(OBJ) cam-thread.h planck.h
|
2021-01-15 19:49:04 +01:00
|
|
|
$(CC) $(OBJ) -o $(PRG) $(LIBS)
|
|
|
|
|
2021-02-06 20:50:04 +01:00
|
|
|
install:
|
|
|
|
install -D $(PRG) $(DESTDIR)$(prefix)/bin/$(PRG)
|
2021-02-07 17:32:13 +01:00
|
|
|
install -D flirgtk.desktop $(DESTDIR)$(prefix)/share/applications/flirgtk.desktop
|
|
|
|
install -D flirgtk.png $(DESTDIR)$(prefix)/share/icons/hicolor/256x256/apps/flirgtk.png
|
2021-02-06 21:10:05 +01:00
|
|
|
install -D 77-flirone-lusb.rules $(DESTDIR)/lib/udev/rules.d/77-flirone-lusb.rules
|
2021-02-06 20:50:04 +01:00
|
|
|
|
2021-01-15 19:49:04 +01:00
|
|
|
clean:
|
2021-02-06 20:50:04 +01:00
|
|
|
rm -f $(PRG) $(OBJ)
|
2021-02-06 21:22:36 +01:00
|
|
|
rm -rf debian/.debhelper
|
|
|
|
rm -f debian/files
|
|
|
|
rm -rf debian/flirgtk
|
|
|
|
rm -f debian/debhelper-build-stamp
|
|
|
|
rm -f debian/flirgtk.debhelper.log
|
|
|
|
rm -f debian/flirgtk.substvars
|
2021-02-06 20:50:04 +01:00
|
|
|
|
|
|
|
deb:
|
2021-02-07 17:32:13 +01:00
|
|
|
dpkg-buildpackage -rfakeroot -b -uc -us -ui -i
|