23a48c7cfe
Addresses are now stored as uchar[16] instead of ulong, with enough room for IPv6. Generic IP functions have been removed from devip.c and replaced by libip, imported from Plan 9. Names and addresses are resolved using either gethostbyname() or getaddrinfo() functions. On Windows, IPv6 name resolution is not enabled, because mingw32 doesn't provide inet_ntop(). R=rsc http://codereview.appspot.com/6408044
76 lines
1.1 KiB
Makefile
76 lines
1.1 KiB
Makefile
ROOT=.
|
|
|
|
include Make.config
|
|
|
|
OFILES=\
|
|
main.$O\
|
|
cpu.$O\
|
|
readcons.$O\
|
|
secstore.$O\
|
|
latin1.$O\
|
|
$(OS)-factotum.$O\
|
|
$(XOFILES)\
|
|
|
|
LIBS1=\
|
|
kern/libkern.a\
|
|
exportfs/libexportfs.a\
|
|
libauth/libauth.a\
|
|
libauthsrv/libauthsrv.a\
|
|
libsec/libsec.a\
|
|
libmp/libmp.a\
|
|
libmemdraw/libmemdraw.a\
|
|
libmemlayer/libmemlayer.a\
|
|
libdraw/libdraw.a\
|
|
gui-$(GUI)/libgui.a\
|
|
libc/libc.a\
|
|
libip/libip.a\
|
|
|
|
# stupid gcc
|
|
LIBS=$(LIBS1) $(LIBS1) $(LIBS1) libmachdep.a
|
|
|
|
default: $(TARG)
|
|
$(TARG): $(OFILES) $(LIBS)
|
|
$(CC) $(LDFLAGS) -o $(TARG) $(OFILES) $(LIBS) $(LDADD)
|
|
|
|
%.$O: %.c
|
|
$(CC) $(CFLAGS) $*.c
|
|
|
|
clean:
|
|
rm -f *.o */*.o */*.a *.a drawterm drawterm.exe
|
|
|
|
kern/libkern.a:
|
|
(cd kern; $(MAKE))
|
|
|
|
exportfs/libexportfs.a:
|
|
(cd exportfs; $(MAKE))
|
|
|
|
libauth/libauth.a:
|
|
(cd libauth; $(MAKE))
|
|
|
|
libauthsrv/libauthsrv.a:
|
|
(cd libauthsrv; $(MAKE))
|
|
|
|
libmp/libmp.a:
|
|
(cd libmp; $(MAKE))
|
|
|
|
libsec/libsec.a:
|
|
(cd libsec; $(MAKE))
|
|
|
|
libmemdraw/libmemdraw.a:
|
|
(cd libmemdraw; $(MAKE))
|
|
|
|
libmemlayer/libmemlayer.a:
|
|
(cd libmemlayer; $(MAKE))
|
|
|
|
libdraw/libdraw.a:
|
|
(cd libdraw; $(MAKE))
|
|
|
|
libc/libc.a:
|
|
(cd libc; $(MAKE))
|
|
|
|
libip/libip.a:
|
|
(cd libip; $(MAKE))
|
|
|
|
gui-$(GUI)/libgui.a:
|
|
(cd gui-$(GUI); $(MAKE))
|