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