summaryrefslogtreecommitdiff
path: root/net/Makefile
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-09-27 14:30:33 +0200
committerMiguel <m.i@gmx.at>2018-09-27 14:30:33 +0200
commit8e005d0f13767db538e3d939188d73370db9042d (patch)
treea9b320d6b3da7137348019de70846bdf8aa03246 /net/Makefile
parent05d86ed530c05ba3f8648ffd7e67f4a593ae58d8 (diff)
added linux tap support for fool's network stack
Diffstat (limited to 'net/Makefile')
-rw-r--r--net/Makefile23
1 files changed, 18 insertions, 5 deletions
diff --git a/net/Makefile b/net/Makefile
index 979a771..85cf348 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -3,6 +3,8 @@
# Fool Stack #
##############
+EXE=fool-stack
+
############ compiler ############
#use our cross compiler
@@ -22,6 +24,7 @@ AS=as
#https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html
CFLAGS=
+CFLAGS+=-DPLATFORM_LINUX
#CFLAGS+=-fvar-tracking
#CFLAGS+=-DGIT_REVISION=\"$(GIT_REVISION)\"
#CFLAGS+=-ffreestanding # do we need this if using own compiler?
@@ -85,15 +88,25 @@ OBJECTS=$(patsubst %.c, %.o, $(SOURCES))
#derive and include deps
DEPS=$(patsubst %.c, %.d, $(SOURCES))
+# default target
+new: clean tags all
+
+-include ../Makefile.common
-include $(DEPS)
-new: clean compile
+run: all
+ ./$(EXE)
+
+all: $(OBJECTS)
+ @echo "Compiling and linking objects ..."
+ $(CC) *.o -o $(EXE)
+
+deps: $(DEPS)
+ @echo "Generating deps ..."
-compile: $(OBJECTS) $(DEPS)
tags:
- @echo "Generating ctags..."; ctags --recurse=yes .
+ @echo "Generating ctags .."; ctags --recurse=yes .
clean:
- @echo "Cleaning..."; rm -f *.d *.o tags
-
+ @echo "Cleaning up..."; rm -f *.d *.o tags $(EXE)