2005-10-31 18:30:23 +03:00
|
|
|
ROOT=.
|
|
|
|
|
|
|
|
include Make.config
|
2005-08-08 16:50:13 +04:00
|
|
|
|
|
|
|
OFILES=\
|
|
|
|
main.$O\
|
|
|
|
cpu.$O\
|
|
|
|
readcons.$O\
|
|
|
|
secstore.$O\
|
2005-10-31 18:30:23 +03:00
|
|
|
latin1.$O\
|
2005-11-04 18:36:40 +03:00
|
|
|
$(OS)-factotum.$O\
|
2005-11-08 06:12:41 +03:00
|
|
|
$(XOFILES)\
|
2005-08-08 16:50:13 +04:00
|
|
|
|
2005-11-04 18:36:40 +03:00
|
|
|
LIBS1=\
|
2005-08-08 16:50:13 +04:00
|
|
|
kern/libkern.a\
|
|
|
|
exportfs/libexportfs.a\
|
2005-11-04 18:36:40 +03:00
|
|
|
libauth/libauth.a\
|
2005-08-08 16:50:13 +04:00
|
|
|
libauthsrv/libauthsrv.a\
|
|
|
|
libsec/libsec.a\
|
|
|
|
libmp/libmp.a\
|
|
|
|
libc/libc.a\
|
2012-08-03 23:30:17 +04:00
|
|
|
libip/libip.a\
|
2005-11-04 18:36:40 +03:00
|
|
|
|
|
|
|
# stupid gcc
|
|
|
|
LIBS=$(LIBS1) $(LIBS1) $(LIBS1) libmachdep.a
|
2005-08-08 16:50:13 +04:00
|
|
|
|
2005-11-04 18:47:45 +03:00
|
|
|
default: $(TARG)
|
2005-08-08 16:50:13 +04:00
|
|
|
$(TARG): $(OFILES) $(LIBS)
|
2005-10-31 18:30:23 +03:00
|
|
|
$(CC) $(LDFLAGS) -o $(TARG) $(OFILES) $(LIBS) $(LDADD)
|
2005-08-08 16:50:13 +04:00
|
|
|
|
|
|
|
%.$O: %.c
|
|
|
|
$(CC) $(CFLAGS) $*.c
|
|
|
|
|
|
|
|
clean:
|
2005-10-31 18:30:23 +03:00
|
|
|
rm -f *.o */*.o */*.a *.a drawterm drawterm.exe
|
2005-08-08 16:50:13 +04:00
|
|
|
|
|
|
|
kern/libkern.a:
|
2005-12-30 02:41:14 +03:00
|
|
|
(cd kern; $(MAKE))
|
2005-08-08 16:50:13 +04:00
|
|
|
|
|
|
|
exportfs/libexportfs.a:
|
2005-12-30 02:41:14 +03:00
|
|
|
(cd exportfs; $(MAKE))
|
2005-08-08 16:50:13 +04:00
|
|
|
|
2005-11-04 18:36:40 +03:00
|
|
|
libauth/libauth.a:
|
2005-12-30 02:41:14 +03:00
|
|
|
(cd libauth; $(MAKE))
|
2005-11-04 18:36:40 +03:00
|
|
|
|
2005-08-08 16:50:13 +04:00
|
|
|
libauthsrv/libauthsrv.a:
|
2005-12-30 02:41:14 +03:00
|
|
|
(cd libauthsrv; $(MAKE))
|
2005-08-08 16:50:13 +04:00
|
|
|
|
|
|
|
libmp/libmp.a:
|
2005-12-30 02:41:14 +03:00
|
|
|
(cd libmp; $(MAKE))
|
2005-08-08 16:50:13 +04:00
|
|
|
|
|
|
|
libsec/libsec.a:
|
2005-12-30 02:41:14 +03:00
|
|
|
(cd libsec; $(MAKE))
|
2005-08-08 16:50:13 +04:00
|
|
|
|
|
|
|
libc/libc.a:
|
2005-12-30 02:41:14 +03:00
|
|
|
(cd libc; $(MAKE))
|
2005-08-08 16:50:13 +04:00
|
|
|
|
2012-08-03 23:30:17 +04:00
|
|
|
libip/libip.a:
|
|
|
|
(cd libip; $(MAKE))
|