summaryrefslogtreecommitdiff
path: root/acpi/Makefile
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2021-04-03 21:19:33 +1100
committerDamien Zammit <damien@zamaudio.com>2021-04-03 23:06:21 +1100
commit53fdd2f6649640ee981be45c727ec0e8e885fb96 (patch)
tree85a173615c346b4ea7989c46ea779ca4789af207 /acpi/Makefile
parent4f5eb7074e6ecbe8e53552a7f516923bfb75724e (diff)
acpi: Add new RPCsacpica-integrate
Diffstat (limited to 'acpi/Makefile')
-rw-r--r--acpi/Makefile15
1 files changed, 14 insertions, 1 deletions
diff --git a/acpi/Makefile b/acpi/Makefile
index 49c8ba9a..cc55a9f5 100644
--- a/acpi/Makefile
+++ b/acpi/Makefile
@@ -21,7 +21,9 @@ makemode = server
PORTDIR = $(srcdir)/port
SRCS = main.c netfs_impl.c acpi.c \
- acpifs.c ncache.c options.c func_files.c
+ acpifs.c ncache.c options.c func_files.c acpi-ops.c \
+ acpiServer.c
+
MIGSRCS =
OBJS = $(patsubst %.S,%.o,$(patsubst %.c,%.o, $(SRCS) $(MIGSRCS)))
@@ -33,3 +35,14 @@ target = acpi
include ../Makeconf
CFLAGS += -I$(PORTDIR)/include
+
+acpi-MIGSFLAGS = -imacros $(srcdir)/mig-mutate.h
+
+# cpp doesn't automatically make dependencies for -imacros dependencies. argh.
+acpi_S.h acpiServer.c: mig-mutate.h
+ cat ../../hurd/acpi.defs \
+ | ${CC} -E -x c - -o - -imacros ../../acpi/mig-mutate.h \
+ | mig -cc cat - /dev/null -prefix S_ -subrprefix __ \
+ -user /dev/null \
+ -server acpiServer.c \
+ -sheader acpi_S.h