From 8e005d0f13767db538e3d939188d73370db9042d Mon Sep 17 00:00:00 2001 From: Miguel Date: Thu, 27 Sep 2018 14:30:33 +0200 Subject: added linux tap support for fool's network stack --- net/Makefile | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) (limited to 'net/Makefile') 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) -- cgit v1.2.3