-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
executable file
·32 lines (22 loc) · 789 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
PREFIX = /usr
CC = gcc
RM = rm -f
CFLAGS = -std=c99 -pedantic -Wall -O2
PKGS = `pkg-config --libs --cflags gtk+-3.0 liblightdm-gobject-1 gmodule-export-2.0`
LIBS = `pkg-config --libs gtk+-3.0 liblightdm-gobject-1 gmodule-export-2.0`
TARGET = lightdm-tiny-greeter
.PHONY: clean all install uninstall
all: $(TARGET)
$(TARGET): lightdm-tiny-greeter.o
$(CC) -o $@ $^ $(LIBS)
lightdm-tiny-greeter.o: lightdm-tiny-greeter.c config.h
$(CC) $(CFLAGS) -c $^ $(PKGS)
install:
$(shell mkdir -p /usr/share/xgreeters)
cp lightdm-tiny-greeter.desktop /usr/share/xgreeters/lightdm-tiny-greeter.desktop
cp lightdm-tiny-greeter $(PREFIX)/bin/lightdm-tiny-greeter
uninstall:
$(RM) /usr/share/xgreeters/lightdm-tiny-greeter.desktop
$(RM) $(PREFIX)/bin/lightdm-tiny-greeter
clean:
$(RM) *.o