summaryrefslogtreecommitdiff
path: root/net/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/Makefile')
-rw-r--r--net/Makefile15
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 .