Browse files

Enable to compile on a x64 machine

  • Loading branch information...
1 parent f862d06 commit 45c241f0aaeccc0e8dcbefb683150110cd7f26ed @akoskovacs committed Apr 15, 2012
Showing with 2 additions and 6 deletions.
  1. +2 −2 Makefile
  2. +0 −4 include/types.h
@@ -6,8 +6,8 @@ RM = rm
SH = bash
QEMU = qemu
-CFLAGS := -std=c99 -Wall -O3 -march=i586 -nostdinc -fno-builtin -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -Wall -Wextra -Werror -ffreestanding -Wno-unused -ggdb
-ASFLAGS := -Wall -Wextra -Werror -ggdb
+CFLAGS := -std=c99 -Wall -O3 -march=i586 -nostdinc -fno-builtin -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -Wall -Wextra -Werror -ffreestanding -Wno-unused -ggdb -m32
+ASFLAGS := -Wall -Wextra -Werror -ggdb -m32
LDFLAGS := -nostartfiles -nodefaultlibs -nostdlib -static -ggdb -T linker.ld
INCLUDES := -I include -I lib/include
TARGET := akx_kernel
@@ -1,10 +1,6 @@
#ifndef TYPES_H
#define TYPES_H
-#ifdef __x86_64__
-#error "Sorry, but you cannot compile Akosix in a 64-bit environment, yet. :-("
typedef unsigned long size_t;
typedef unsigned long long off_t;
typedef unsigned long paddr_t;

0 comments on commit 45c241f

Please sign in to comment.