X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FModules%2FMakefile.tpl;h=19fd77ea4640789040c49c83ca70db2cd326e0b6;hb=fb3abbad5dfd71ea2b190d0b33d9c57e879fb15a;hp=e365e99d9ffb724b349443ca41df751e7cde552a;hpb=f48e29379bd57e2d361cbc65477be120da47e874;p=tpg%2Facess2.git diff --git a/KernelLand/Modules/Makefile.tpl b/KernelLand/Modules/Makefile.tpl index e365e99d..19fd77ea 100644 --- a/KernelLand/Modules/Makefile.tpl +++ b/KernelLand/Modules/Makefile.tpl @@ -13,7 +13,7 @@ CPPFLAGS := -I$(ACESSDIR)/KernelLand/Kernel/include -I$(ACESSDIR)/KernelLand/Ker CPPFLAGS += -I$(ACESSDIR)/KernelLand/Modules CPPFLAGS += -DARCH=$(ARCH) -DARCH_is_$(ARCH) -DARCHDIR_is_$(ARCHDIR) CPPFLAGS += $(_CPPFLAGS) -CPPFLAGS += $(LIBINCLUDES) +CPPFLAGS += $(LIBINCLUDES) -ffreestanding CFLAGS := -std=gnu99 -Wall -fno-stack-protector -g -O3 CFLAGS += -Werror @@ -51,9 +51,11 @@ clean: install: $(BIN) ifneq ($(BUILDTYPE),static) - @$(xMKDIR) $(DISTROOT)/Modules/$(ARCH); true - $(xCP) $(BIN) $(DISTROOT)/Modules/$(ARCH)/$(NAME).kmd + @$(xMKDIR) $(DISTROOT)/$(ARCH)/Modules; true + @gzip -c $(BIN) > $(BIN).gz + $(xCP) $(BIN).gz $(DISTROOT)/$(ARCH)/Modules/$(NAME).kmd.gz else + @true endif