backlight: don't build static; applesmc: don't install with suid

This commit is contained in:
Silvan Calarco 2015-03-24 23:15:41 +01:00
parent 2af3d8c5c4
commit 732eed7dab

View File

@ -14,7 +14,7 @@ all: applesmc backlight
applesmc: applesmc.c Makefile
gcc -DVERSION=\"$(VERSION)\" -Wall applesmc.c -o applesmc
backlight: backlight.c Makefile
gcc -DVERSION=\"$(VERSION)\" -Wall backlight.c -o backlight -lpci -static
gcc -DVERSION=\"$(VERSION)\" -Wall backlight.c -o backlight -lpci
install: backlight applesmc
install -d $(DESTDIR)$(BINDIR) $(DESTDIR)$(INITDIR)
@ -22,7 +22,7 @@ install: backlight applesmc
install -d $(DESTDIR)$(SBIN) $(DESTDIR)$(SBINDIR)
install -d $(DESTDIR)$(SYSCONFDIR)/sysconfig
install -d $(DESTDIR)/lib/systemd/system
install -s -m 4755 applesmc $(DESTDIR)$(BINDIR)
install -s -m 0755 applesmc $(DESTDIR)$(BINDIR)
install -s -m 4755 backlight $(DESTDIR)$(BINDIR)
install -m 0755 macbook-set-input $(DESTDIR)$(BINDIR)/
install -m 0644 applesmcd.service $(DESTDIR)/lib/systemd/system/applesmcd.service