mirror of
https://github.com/dperelman/gluqlo
synced 2024-12-21 08:18:12 -05:00
25 lines
924 B
Makefile
25 lines
924 B
Makefile
CC=g++
|
|
FONTDIR=$(DESTDIR)/usr/share/gluqlo
|
|
CFLAGS=-Wall -o gluqlo gluqlo.c `sdl-config --libs --cflags` -DFONT='"$(FONTDIR)/gluqlo.ttf"'
|
|
LDFLAGS=-lX11 -lSDL_ttf -lSDL_gfx
|
|
|
|
all: gluqlo
|
|
|
|
gluqlo: gluqlo.c
|
|
$(CC) $(CFLAGS) $(LDFLAGS)
|
|
|
|
install:
|
|
strip gluqlo
|
|
install -o root -m 0755 -D gluqlo $(DESTDIR)/usr/lib/xscreensaver/gluqlo
|
|
install -o root -m 0644 -D gluqlo.ttf $(FONTDIR)/gluqlo.ttf
|
|
install -o root -m 0644 -D gluqlo.png $(DESTDIR)/usr/share/pixmaps/gluqlo.png
|
|
install -o root -m 0644 -D gluqlo.xml $(DESTDIR)/usr/share/xscreensaver/config/gluqlo.xml
|
|
install -o root -m 0644 -D gluqlo.desktop $(DESTDIR)/usr/share/applications/screensavers/gluqlo.desktop
|
|
|
|
uninstall:
|
|
rm -f $(DESTDIR)/usr/share/xscreensaver/config/gluqlo.xml $(DESTDIR)/usr/share/applications/screensavers/gluqlo.desktop \
|
|
$(DESTDIR)/usr/lib/xscreensaver/gluqlo $(FONTDIR)/gluqlo.ttf $(DESTDIR)/usr/share/pixmaps/gluqlo.png
|
|
|
|
clean:
|
|
rm -f gluqlo
|