diff options
Diffstat (limited to 'acpi/Makefile')
-rw-r--r-- | acpi/Makefile | 15 |
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 |