+ # TCC points to the root of tcc tree
+ CC=$(TCC)/tcc.exe
+ EXTRA_CFLAGS += -DTCC -I..
+ EXTRA_CFLAGS += -I$(TCC)/include/winapi -I$(TCC)/include
+ EXTRA_CFLAGS += -nostdinc
+
+ EDIRS += arpa net netinet sys
+ EFILES += err.h grp.h netdb.h pwd.h sysexits.h
+ EFILES += arpa/inet.h
+ EFILES += net/if.h
+ EFILES += netinet/in.h netinet/in_systm.h netinet/ip.h
+ EFILES += netinet/ip_icmp.h
+ EFILES += sys/cdefs.h sys/wait.h
+ EFILES += sys/ioctl.h sys/socket.h
+endif
+ # EXTRA_CFLAGS += -D_WIN32 # see who defines it
+ EXTRA_CFLAGS += -Dsetsockopt=wnd_setsockopt
+ EXTRA_CFLAGS += -Dgetsockopt=wnd_getsockopt
+ EXTRA_CFLAGS += -DEMULATE_SYSCTL
+ EDIRS += net netinet
+ EFILES += net/ethernet.h net/route.h
+ EFILES += netinet/ether.h netinet/icmp6.h
+ EFILES += sys/sysctl.h
+ TARGET := ipfw.exe