mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
init: reboot, acpid
This commit is contained in:
+15
-1
@@ -2,12 +2,14 @@
|
||||
CC=x86_64-astral-gcc
|
||||
LD=x86_64-astral-gcc
|
||||
|
||||
all: init poweroff
|
||||
all: init poweroff reboot acpid
|
||||
|
||||
install:
|
||||
mkdir -pv "$(DESTDIR)/usr/sbin"
|
||||
cp -v init "$(DESTDIR)/init"
|
||||
cp -v poweroff "$(DESTDIR)/usr/sbin/poweroff"
|
||||
cp -v reboot "$(DESTDIR)/usr/sbin/reboot"
|
||||
cp -v acpid "$(DESTDIR)/usr/sbin/acpid"
|
||||
|
||||
init: main.o
|
||||
$(LD) $(LDFLAGS) -o $@ $^
|
||||
@@ -15,8 +17,20 @@ init: main.o
|
||||
poweroff: poweroff.o
|
||||
$(LD) $(LDFLAGS) -o $@ $^
|
||||
|
||||
reboot: reboot.o
|
||||
$(LD) $(LDFLAGS) -o $@ $^
|
||||
|
||||
acpid: acpid.o
|
||||
$(LD) $(LDFLAGS) -o $@ $^
|
||||
|
||||
main.o: main.c
|
||||
$(CC) -c $(CFLAGS) -o $@ $<
|
||||
|
||||
poweroff.o: poweroff.c
|
||||
$(CC) -c $(CFLAGS) -o $@ $<
|
||||
|
||||
reboot.o: reboot.c
|
||||
$(CC) -c $(CFLAGS) -o $@ $<
|
||||
|
||||
acpid.o: acpid.c
|
||||
$(CC) -c $(CFLAGS) -o $@ $<
|
||||
|
||||
Reference in New Issue
Block a user