From 330aa15e3e4a705eb8d168bc9c76af9b1b768dfc Mon Sep 17 00:00:00 2001 From: Miguel Date: Thu, 27 Sep 2018 01:43:43 +0200 Subject: user space compilation of fool stack --- net/Makefile | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'net/Makefile') diff --git a/net/Makefile b/net/Makefile index b8ab2b6..979a771 100644 --- a/net/Makefile +++ b/net/Makefile @@ -13,19 +13,22 @@ AS=i686-foolos-as CC=i686-elf-gcc AS=i686-elf-as -############ compiler flags ############ +#regular host compilation +CC=gcc +AS=as +############ compiler flags ############ #https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html CFLAGS= #CFLAGS+=-fvar-tracking #CFLAGS+=-DGIT_REVISION=\"$(GIT_REVISION)\" -CFLAGS+=-ffreestanding # do we need this if using own compiler? -CFLAGS+=-nostdlib +#CFLAGS+=-ffreestanding # do we need this if using own compiler? +#CFLAGS+=-nostdlib #CFLAGS+=-Og CFLAGS+=-O0 -#CFLAGS+=-I. +CFLAGS+=-I. #CFLAGS+=-I/home/miguel/temp/foolos/usr/i686-foolos/include/ #CFLAGS+=-I./asm #CFLAGS+=-I./kernel @@ -84,6 +87,10 @@ DEPS=$(patsubst %.c, %.d, $(SOURCES)) -include $(DEPS) +new: clean compile + +compile: $(OBJECTS) $(DEPS) + tags: @echo "Generating ctags..."; ctags --recurse=yes . -- cgit v1.2.3