1
0
noflipqlo/makefile

24 lines
644 B
Makefile

#Compiler
CC=g++
#Flags
#CFLAGS= -Wall `sdl-config --cflags` `sdl-config --libs` -lX11 -lSDL_ttf -lSDL_gfx main.cpp -o noflipqlo
CFLAGS= -o noflipqlo main.cpp `sdl2-config --libs --cflags`
LDFLAGS= -lX11 `sdl2-config --libs` -lSDL2_ttf -lSDL2_gfx
all: noflipqlo
debug: CFLAGS += -g -DDEBUG
debug: noflipqlo
install-shortcuts:
cp xscreenserver-demo.desktop ~/.config/autostart/
cp noflipqlo.desktop ~/.local/share/applications/screensavers
noflipqlo: main.cpp
$(CC) $(CFLAGS) $(LDFLAGS)
install:
install -o root noflipqlo /usr/lib/xscreensaver/
install -o root noflipqlo.xml /usr/share/xscreensaver/config/
clean:
rm -rf noflipqlo