diff options
| author | Miguel <m.i@gmx.at> | 2018-09-27 01:43:43 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-09-27 01:43:43 +0200 |
| commit | 330aa15e3e4a705eb8d168bc9c76af9b1b768dfc (patch) | |
| tree | be3412953a872dc3ad43217d45009f28d4607966 /net/Makefile | |
| parent | c7bf9cc575dea15ecc8780afd34ffb3503f3249b (diff) | |
user space compilation of fool stack
Diffstat (limited to 'net/Makefile')
| -rw-r--r-- | net/Makefile | 15 |
1 files changed, 11 insertions, 4 deletions
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 . |
