summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 49a1745..31b7c56 100644
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,12 @@ USER_CFLAGS = $(CFLAGS) -Isrc/user/lib/include/
SPARSEFLAGS = -Wno-non-pointer-null
LFLAGS = -ffreestanding -O2 -nostdlib -lgcc -Wl,-zmax-page-size=4096 -Wl,--no-warn-mismatch
-QFLAGS = -no-reboot -nic socket,model=rtl8139,connect=:1234,mac=52:54:00:ca:77:1a
+QFLAGS = -no-reboot
+ifdef NET_DIRECT
+QFLAGS += -nic socket,model=rtl8139,connect=:1234,mac=52:54:00:ca:77:1a
+else
+QFLAGS += -nic user,model=rtl8139,mac=52:54:00:ca:77:1a,net=192.168.0.0/24,hostfwd=tcp::12380-192.168.0.11:80
+endif
ifndef NO_KVM
QFLAGS += -enable-kvm
endif