2011-11-13 00:38:56 +01:00
|
|
|
#if 0
|
2011-11-13 00:39:00 +01:00
|
|
|
#makefile.unx 30-May-00
|
2011-11-13 00:38:56 +01:00
|
|
|
#endif
|
2011-11-13 00:38:56 +01:00
|
|
|
|
|
|
|
VPATH=$(V_VPATH)
|
|
|
|
|
2011-11-13 00:38:55 +01:00
|
|
|
O=.o
|
|
|
|
C=.c
|
|
|
|
|
|
|
|
V_H=0
|
2011-11-13 00:38:58 +01:00
|
|
|
V_L=99
|
2011-11-13 00:39:00 +01:00
|
|
|
P_L=20
|
2011-11-13 00:38:56 +01:00
|
|
|
|
2011-11-13 00:38:57 +01:00
|
|
|
#define D_P_L 1
|
2011-11-13 00:38:55 +01:00
|
|
|
DISTRIB=mars_nwe
|
2011-11-13 00:38:55 +01:00
|
|
|
#if D_P_L
|
|
|
|
DISTRIBF=$(DISTRIB)-$(V_H).$(V_L).pl$(P_L)
|
|
|
|
PATCHF=$(DISTRIBF)
|
|
|
|
#else
|
|
|
|
P_L=0
|
2011-11-13 00:38:55 +01:00
|
|
|
DISTRIBF=$(DISTRIB)-$(V_H).$(V_L)
|
|
|
|
PATCHF=$(DISTRIBF).pl$(P_L)
|
2011-11-13 00:38:55 +01:00
|
|
|
#endif
|
2011-11-13 00:38:55 +01:00
|
|
|
STERN=*
|
|
|
|
|
2011-11-13 00:38:58 +01:00
|
|
|
MAKEPATCH=diff -rub --new-file
|
2011-11-13 00:38:58 +01:00
|
|
|
|
2011-11-13 00:38:55 +01:00
|
|
|
DESTMAKEFILE=Makefile.o
|
2011-11-13 00:38:58 +01:00
|
|
|
#if 0
|
2011-11-13 00:38:55 +01:00
|
|
|
all: $(DESTMAKEFILE)
|
|
|
|
$(MAKE) -f $(DESTMAKEFILE) n_$@
|
|
|
|
|
2011-11-13 00:38:56 +01:00
|
|
|
routed: $(DESTMAKEFILE)
|
|
|
|
$(MAKE) -f $(DESTMAKEFILE) n_$@
|
|
|
|
|
2011-11-13 00:38:55 +01:00
|
|
|
clean: $(DESTMAKEFILE)
|
|
|
|
$(MAKE) -f $(DESTMAKEFILE) n_$@
|
|
|
|
|
|
|
|
distclean: $(DESTMAKEFILE)
|
|
|
|
$(MAKE) -f $(DESTMAKEFILE) n_$@
|
|
|
|
|
|
|
|
install: $(DESTMAKEFILE)
|
|
|
|
$(MAKE) -f $(DESTMAKEFILE) n_$@
|
|
|
|
|
2011-11-13 00:38:57 +01:00
|
|
|
reboot: $(DESTMAKEFILE)
|
|
|
|
$(MAKE) -f $(DESTMAKEFILE) n_$@
|
|
|
|
|
2011-11-13 00:38:55 +01:00
|
|
|
install_ini: $(DESTMAKEFILE)
|
|
|
|
$(MAKE) -f $(DESTMAKEFILE) n_$@
|
|
|
|
|
|
|
|
diff: $(DESTMAKEFILE)
|
|
|
|
$(MAKE) -f $(DESTMAKEFILE) n_$@
|
|
|
|
|
2011-11-13 00:38:58 +01:00
|
|
|
showconf: $(DESTMAKEFILE)
|
|
|
|
$(MAKE) -f $(DESTMAKEFILE) n_$@
|
|
|
|
|
2011-11-13 00:38:55 +01:00
|
|
|
distrib: $(DESTMAKEFILE)
|
|
|
|
$(MAKE) -f $(DESTMAKEFILE) n_$@
|
|
|
|
|
|
|
|
distrib_bin: $(DESTMAKEFILE)
|
|
|
|
$(MAKE) -f $(DESTMAKEFILE) n_$@
|
|
|
|
|
2011-11-13 00:38:59 +01:00
|
|
|
bintgz: $(DESTMAKEFILE)
|
|
|
|
$(MAKE) -f $(DESTMAKEFILE) n_$@
|
|
|
|
|
2011-11-13 00:38:56 +01:00
|
|
|
$(DESTMAKEFILE): $(VPATH)/makefile.unx $(VPATH)/config.h
|
2011-11-13 00:38:55 +01:00
|
|
|
rm -f $@
|
2011-11-13 00:38:56 +01:00
|
|
|
cp $(VPATH)/makefile.unx makefile.c
|
2011-11-13 00:38:55 +01:00
|
|
|
$(CPP) $(HOSTCFLAGS) -I$(VPATH) makefile.c > $@
|
|
|
|
rm -f makefile.c
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2011-11-13 00:38:56 +01:00
|
|
|
PROG1=
|
2011-11-13 00:38:55 +01:00
|
|
|
PROG2=nwserv
|
|
|
|
PROG3=nwconn
|
|
|
|
PROG4=ncpserv
|
|
|
|
PROG5=nwclient
|
2011-11-13 00:38:56 +01:00
|
|
|
PROG6=nwbind
|
2011-11-13 00:38:56 +01:00
|
|
|
PROG7=nwrouted
|
2011-11-13 00:38:57 +01:00
|
|
|
PROG8=dbmtool
|
2011-11-13 00:38:59 +01:00
|
|
|
PROG9=ftrustee
|
2011-11-13 00:38:55 +01:00
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
#ifdef FILENAME_NW_INI
|
|
|
|
M_FILENAME_NW_INI=FILENAME_NW_INI
|
|
|
|
#else
|
|
|
|
M_FILENAME_NW_INI="./nw.ini"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef PATHNAME_PROGS
|
|
|
|
M_PATHNAME_PROGS=PATHNAME_PROGS
|
|
|
|
#else
|
|
|
|
M_PATHNAME_PROGS="."
|
|
|
|
#endif
|
|
|
|
|
2011-11-13 00:38:59 +01:00
|
|
|
M_PATHNAME_BINDERY=PATHNAME_BINDERY
|
2011-11-13 00:38:56 +01:00
|
|
|
|
|
|
|
#ifdef LINUX
|
2011-11-13 00:38:59 +01:00
|
|
|
# ifdef FREEBSD
|
|
|
|
EMUTLIOBJ=emutli$(O) ipxif$(O)
|
|
|
|
NWROUTE_O=nwroute1$(O)
|
|
|
|
NWROUTED=
|
|
|
|
# else
|
|
|
|
# ifndef INTERNAL_RIP_SAP
|
|
|
|
# define INTERNAL_RIP_SAP 1
|
|
|
|
# endif
|
2011-11-13 00:38:56 +01:00
|
|
|
EMUTLIOBJ=emutli$(O)
|
2011-11-13 00:38:59 +01:00
|
|
|
# if INTERNAL_RIP_SAP
|
2011-11-13 00:38:56 +01:00
|
|
|
EMUTLIOBJ1=emutli1$(O)
|
2011-11-13 00:38:56 +01:00
|
|
|
NWROUTE_O=nwroute$(O)
|
2011-11-13 00:38:59 +01:00
|
|
|
# else
|
|
|
|
EMUTLIOBJ1=
|
2011-11-13 00:38:56 +01:00
|
|
|
NWROUTE_O=nwroute1$(O)
|
2011-11-13 00:38:56 +01:00
|
|
|
NWROUTED=$(PROG7)
|
2011-11-13 00:38:59 +01:00
|
|
|
# endif
|
2011-11-13 00:38:56 +01:00
|
|
|
# endif
|
|
|
|
#else
|
|
|
|
NWROUTE_O=nwroute1$(O)
|
2011-11-13 00:38:59 +01:00
|
|
|
NWROUTED=
|
2011-11-13 00:38:56 +01:00
|
|
|
#endif
|
|
|
|
|
2011-11-13 00:38:57 +01:00
|
|
|
INSTALLPROGS=$(PROG1) $(PROG2) $(PROG3) $(PROG4) $(PROG5) $(PROG6) $(NWROUTED)
|
2011-11-13 00:38:59 +01:00
|
|
|
PROGS=$(INSTALLPROGS) $(PROG8) $(PROG9)
|
2011-11-13 00:38:56 +01:00
|
|
|
|
2011-11-13 00:38:55 +01:00
|
|
|
OBJ1= $(EMUTLIOBJ) net1$(O) tools$(O)
|
2011-11-13 00:38:56 +01:00
|
|
|
OBJ2= $(OBJ1) $(EMUTLIOBJ1) $(NWROUTE_O)
|
|
|
|
OBJ3= $(OBJ1) connect$(O) namspace$(O) nwvolume$(O) nwfile$(O) unxfile$(O) \
|
2011-11-13 00:38:59 +01:00
|
|
|
nwqconn$(O) nameos2$(O) nwfname$(O) nwshare$(O) extpipe$(O) \
|
2011-11-13 00:38:59 +01:00
|
|
|
nwattrib$(O) trustee$(O)
|
2011-11-13 00:38:56 +01:00
|
|
|
OBJ4= $(OBJ1)
|
2011-11-13 00:38:55 +01:00
|
|
|
OBJ5= $(OBJ1)
|
2011-11-13 00:38:59 +01:00
|
|
|
OBJ6= $(OBJ1) nwdbm$(O) nwcrypt$(O) unxlog$(O) sema$(O) nwqueue$(O) unxfile$(O)
|
|
|
|
OBJ7= $(OBJ1) emutli1$(O)
|
2011-11-13 00:38:57 +01:00
|
|
|
OBJ8= $(OBJ6)
|
2011-11-13 00:38:59 +01:00
|
|
|
OBJ9= tools$(O) nwfname$(O) unxfile$(O) nwvolume$(O) nwattrib$(O) trustee$(O)
|
2011-11-13 00:38:55 +01:00
|
|
|
|
2011-11-13 00:38:56 +01:00
|
|
|
OBJS= $(EMUTLIOBJ) net1$(O) tools$(O) \
|
|
|
|
$(EMUTLIOBJ1) $(NWROUTE_O) \
|
|
|
|
connect$(O) namspace$(O) nwvolume$(O) nwfile$(O) unxfile$(O)\
|
2011-11-13 00:38:59 +01:00
|
|
|
nwqconn$(O) nameos2$(O) nwfname$(O) nwshare$(O) extpipe$(O) \
|
2011-11-13 00:38:59 +01:00
|
|
|
nwattrib$(O) trustee$(O) \
|
2011-11-13 00:38:59 +01:00
|
|
|
nwdbm$(O) nwcrypt$(O) unxlog$(O) sema$(O) nwqueue$(O) \
|
2011-11-13 00:38:56 +01:00
|
|
|
$(PROG2)$(O) $(PROG3)$(O) $(PROG4)$(O) $(PROG5)$(O) $(PROG6)$(O) \
|
2011-11-13 00:38:59 +01:00
|
|
|
$(PROG7)$(O) $(PROG8)$(O) $(PROG9)$(O)
|
2011-11-13 00:38:55 +01:00
|
|
|
|
2011-11-13 00:38:56 +01:00
|
|
|
HOBJ3= $(PROG3)$(O) connect$(O) namspace$(O) nwvolume$(O) nwfile$(O) \
|
|
|
|
unxfile$(O)
|
2011-11-13 00:38:55 +01:00
|
|
|
|
2011-11-13 00:38:59 +01:00
|
|
|
HOBJ6= $(PROG6)$(O) sema$(O)
|
2011-11-13 00:38:59 +01:00
|
|
|
|
2011-11-13 00:38:56 +01:00
|
|
|
#if 0
|
|
|
|
#$(PROG1): $(PROG1)$(O) $(OBJ1)
|
2011-11-13 00:38:58 +01:00
|
|
|
# $(CC) -o $(VPATH)/$(PROG1) $(PROG1)$(O) $(OBJ1) $(CRYPTLIB) $(NSLLIB)
|
2011-11-13 00:38:56 +01:00
|
|
|
#endif
|
2011-11-13 00:38:55 +01:00
|
|
|
|
|
|
|
$(PROG2): $(PROG2)$(O) $(OBJ2)
|
2011-11-13 00:38:58 +01:00
|
|
|
$(CC) -o $(VPATH)/$(PROG2) $(PROG2)$(O) $(OBJ2) $(CRYPTLIB) $(NSLLIB)
|
2011-11-13 00:38:56 +01:00
|
|
|
|
2011-11-13 00:38:56 +01:00
|
|
|
#if 0
|
2011-11-13 00:38:58 +01:00
|
|
|
#$(CC) -o $(VPATH)/$(PROG2) $(PROG2)$(O) $(OBJ2) $(NDBMLIB) $(CRYPTLIB) $(NSLLIB)
|
2011-11-13 00:38:56 +01:00
|
|
|
#endif
|
2011-11-13 00:38:55 +01:00
|
|
|
|
|
|
|
$(PROG3): $(PROG3)$(O) $(OBJ3)
|
2011-11-13 00:38:58 +01:00
|
|
|
$(CC) -o $(VPATH)/$(PROG3) $(PROG3)$(O) $(OBJ3) $(CRYPTLIB) $(NSLLIB)
|
2011-11-13 00:38:55 +01:00
|
|
|
|
|
|
|
$(PROG4): $(PROG4)$(O) $(OBJ4)
|
2011-11-13 00:38:58 +01:00
|
|
|
$(CC) -o $(VPATH)/$(PROG4) $(PROG4)$(O) $(OBJ4) $(CRYPTLIB) $(NSLLIB)
|
2011-11-13 00:38:55 +01:00
|
|
|
|
|
|
|
$(PROG5): $(PROG5)$(O) $(OBJ5)
|
2011-11-13 00:38:58 +01:00
|
|
|
$(CC) -o $(VPATH)/$(PROG5) $(PROG5)$(O) $(OBJ5) $(CRYPTLIB) $(NSLLIB)
|
2011-11-13 00:38:55 +01:00
|
|
|
|
2011-11-13 00:38:56 +01:00
|
|
|
$(PROG6): $(PROG6)$(O) $(OBJ6)
|
|
|
|
$(CC) -o $(VPATH)/$(PROG6) $(PROG6)$(O) $(OBJ6) $(NDBMLIB) $(CRYPTLIB) $(NSLLIB)
|
|
|
|
|
2011-11-13 00:38:58 +01:00
|
|
|
$(PROG7): $(PROG7)$(O) $(OBJ7)
|
2011-11-13 00:38:58 +01:00
|
|
|
$(CC) -o $(VPATH)/$(PROG7) $(PROG7)$(O) $(OBJ7) $(CRYPTLIB) $(NSLLIB)
|
2011-11-13 00:38:56 +01:00
|
|
|
|
2011-11-13 00:38:57 +01:00
|
|
|
$(PROG8): $(PROG8)$(O) $(OBJ8)
|
|
|
|
$(CC) -o $(VPATH)/$(PROG8) $(PROG8)$(O) $(OBJ8) $(NDBMLIB) $(CRYPTLIB) $(NSLLIB)
|
|
|
|
|
2011-11-13 00:38:59 +01:00
|
|
|
$(PROG9): $(PROG9)$(O) $(OBJ9)
|
|
|
|
$(CC) -o $(VPATH)/$(PROG9) $(PROG9)$(O) $(OBJ9) $(CRYPTLIB) $(NSLLIB)
|
|
|
|
|
2011-11-13 00:38:56 +01:00
|
|
|
$(HOBJ3): namspace.h connect.h nwvolume.h nwfile.h
|
2011-11-13 00:38:59 +01:00
|
|
|
$(HOBJ6): nwbind.h sema.h
|
2011-11-13 00:38:55 +01:00
|
|
|
$(OBJS): net.h config.h
|
2011-11-13 00:38:58 +01:00
|
|
|
$(PROG7)$(O): nwserv.c nwroute.c
|
|
|
|
tools$(O): $(DESTMAKEFILE)
|
2011-11-13 00:38:55 +01:00
|
|
|
|
|
|
|
$(C)$(O):
|
2011-11-13 00:38:56 +01:00
|
|
|
$(CC) -c $(CFLAGS) $(HOSTCFLAGS)\
|
2011-11-13 00:38:55 +01:00
|
|
|
-D_VERS_H_=$(V_H) -D_VERS_L_=$(V_L) -D_VERS_P_=$(P_L) $<
|
2011-11-13 00:38:55 +01:00
|
|
|
|
|
|
|
n_all: $(PROGS)
|
2011-11-13 00:38:56 +01:00
|
|
|
@echo "don't forget to do a 'make install' as root !" >> $(VPATH)/.mk.notes
|
2011-11-13 00:38:57 +01:00
|
|
|
@echo "please take a look into doc/NEWS !" >> $(VPATH)/.mk.notes
|
2011-11-13 00:38:58 +01:00
|
|
|
@-head -n 5 $(VPATH)/doc/NEWS >> $(VPATH)/.mk.notes
|
2011-11-13 00:38:55 +01:00
|
|
|
|
2011-11-13 00:38:56 +01:00
|
|
|
n_routed: $(PROG7)
|
|
|
|
|
2011-11-13 00:38:55 +01:00
|
|
|
n_install_ini:
|
2011-11-13 00:38:56 +01:00
|
|
|
cd $(VPATH) && $(INSTALL) -m 664 nw.ini $(M_FILENAME_NW_INI) && cd $(OBJDIR)
|
2011-11-13 00:38:55 +01:00
|
|
|
|
|
|
|
n_install:
|
2011-11-13 00:38:56 +01:00
|
|
|
cd $(VPATH) && $(INSTALL) -d $(M_PATHNAME_PROGS) && cd $(OBJDIR)
|
2011-11-13 00:38:57 +01:00
|
|
|
cd $(VPATH) && $(INSTALL) $(INSTALLPROGS) $(M_PATHNAME_PROGS) && cd $(OBJDIR)
|
2011-11-13 00:38:59 +01:00
|
|
|
@-if [ -r /sbin/nwserv ] && [ -r /usr/sbin/nwserv ] ; then \
|
|
|
|
echo "remove old version in /sbin ?" ; \
|
|
|
|
(cd /sbin && rm -i nwserv nwbind ncpserv nwconn nwclient nwrouted) ; \
|
2011-11-13 00:38:59 +01:00
|
|
|
fi ;
|
2011-11-13 00:38:59 +01:00
|
|
|
@-if [ -r /etc/nwobj.pag ] ; then \
|
|
|
|
( \
|
|
|
|
if [ ! -r $(M_PATHNAME_BINDERY) ] ; then \
|
|
|
|
if $(VPATH)/tools.sh yesno "move bindery files from /etc to $(M_PATHNAME_BINDERY) ?" ; then \
|
|
|
|
mkdir -p $(M_PATHNAME_BINDERY); \
|
|
|
|
(cd /etc && mv \
|
|
|
|
nwiobj.pag nwiobj.dir nwobj.pag nwobj.dir \
|
|
|
|
nwprop.pag nwprop.dir nwval.pag nwval.dir \
|
|
|
|
$(M_PATHNAME_BINDERY) ) ; \
|
|
|
|
fi; \
|
|
|
|
fi; \
|
|
|
|
) \
|
|
|
|
fi ;
|
2011-11-13 00:38:56 +01:00
|
|
|
@cd $(VPATH) && (if [ -r $(M_FILENAME_NW_INI) ] ; then \
|
2011-11-13 00:38:55 +01:00
|
|
|
echo ""; \
|
|
|
|
echo "********************************************************"; \
|
|
|
|
echo ""; \
|
|
|
|
echo "$(M_FILENAME_NW_INI) exist."; \
|
|
|
|
echo "to overwrite it with nw.ini, make install_ini";\
|
|
|
|
echo ""; \
|
|
|
|
echo "********************************************************"; \
|
|
|
|
echo ""; \
|
|
|
|
else \
|
2011-11-13 00:38:56 +01:00
|
|
|
$(INSTALL) -m 664 nw.ini $(M_FILENAME_NW_INI); \
|
2011-11-13 00:38:55 +01:00
|
|
|
echo ""; \
|
|
|
|
echo "********************************************************"; \
|
|
|
|
echo ""; \
|
|
|
|
echo "$(M_FILENAME_NW_INI) created from nw.ini"; \
|
|
|
|
echo ""; \
|
|
|
|
echo "********************************************************"; \
|
|
|
|
echo ""; \
|
2011-11-13 00:38:57 +01:00
|
|
|
fi; \
|
|
|
|
echo "If you have problems, please read 'doc/BUGS' before"; \
|
|
|
|
echo "sending mail to mailinglist or me."; \
|
|
|
|
echo ""; \
|
|
|
|
echo "********************************************************"; \
|
|
|
|
cd $(OBJDIR) )
|
2011-11-13 00:38:55 +01:00
|
|
|
|
2011-11-13 00:38:57 +01:00
|
|
|
n_reboot: n_install
|
2011-11-13 00:38:59 +01:00
|
|
|
-(nwserv -k ; nwserv)&
|
2011-11-13 00:38:57 +01:00
|
|
|
|
2011-11-13 00:38:56 +01:00
|
|
|
clean_d:
|
2011-11-13 00:38:56 +01:00
|
|
|
cd $(VPATH) && (\
|
2011-11-13 00:38:56 +01:00
|
|
|
find $(DISTRIB) \( -name .e.pck -o -name '~*' -o -name '*~' -o -name core \) \
|
2011-11-13 00:38:56 +01:00
|
|
|
-exec rm {} \; \
|
|
|
|
; cd $(OBJDIR))
|
2011-11-13 00:38:55 +01:00
|
|
|
|
2011-11-13 00:38:56 +01:00
|
|
|
n_clean:
|
2011-11-13 00:38:55 +01:00
|
|
|
rm -f *.o
|
2011-11-13 00:38:59 +01:00
|
|
|
cd $(VPATH) && (rm -f $(PROGS) $(PROG7) \
|
|
|
|
; rm -rf $(OBJDIR)/$(VPATH)/$(DISTRIB) \
|
|
|
|
; cd $(OBJDIR) )
|
2011-11-13 00:38:55 +01:00
|
|
|
|
2011-11-13 00:38:56 +01:00
|
|
|
n_distclean: n_clean clean_d
|
2011-11-13 00:38:56 +01:00
|
|
|
cd $(VPATH) && (rm -f *.dir *.pag; cd $(OBJDIR))
|
2011-11-13 00:38:55 +01:00
|
|
|
|
2011-11-13 00:38:56 +01:00
|
|
|
make_dir:
|
2011-11-13 00:38:56 +01:00
|
|
|
cd $(VPATH) && (rm -rf $(OBJDIR)/$(VPATH)/$(DISTRIB) \
|
2011-11-13 00:38:55 +01:00
|
|
|
; mkdir $(DISTRIB) \
|
|
|
|
; mkdir $(DISTRIB)/examples \
|
2011-11-13 00:38:56 +01:00
|
|
|
; mkdir $(DISTRIB)/doc \
|
2011-11-13 00:38:55 +01:00
|
|
|
; ln -f \
|
|
|
|
$(STERN).[ch] \
|
|
|
|
makefile.unx \
|
2011-11-13 00:38:59 +01:00
|
|
|
tools.sh \
|
2011-11-13 00:38:55 +01:00
|
|
|
Makefile \
|
|
|
|
COPYING \
|
|
|
|
README \
|
|
|
|
$(DISTRIB)/. \
|
2011-11-13 00:38:55 +01:00
|
|
|
; rm -f $(DISTRIB)/config.h \
|
2011-11-13 00:38:55 +01:00
|
|
|
; ln -f \
|
|
|
|
examples/$(STERN) \
|
|
|
|
$(DISTRIB)/examples/. \
|
2011-11-13 00:38:56 +01:00
|
|
|
; ln -f \
|
|
|
|
doc/$(STERN) \
|
|
|
|
$(DISTRIB)/doc/. \
|
2011-11-13 00:38:56 +01:00
|
|
|
; cd $(OBJDIR) )
|
2011-11-13 00:38:55 +01:00
|
|
|
|
2011-11-13 00:38:56 +01:00
|
|
|
n_diff: make_dir clean_d
|
2011-11-13 00:38:56 +01:00
|
|
|
cd $(VPATH) && ( \
|
2011-11-13 00:38:58 +01:00
|
|
|
$(MAKEPATCH) org/$(DISTRIB) $(DISTRIB) > $(PATCHF) \
|
2011-11-13 00:38:55 +01:00
|
|
|
; gzip -9 -f $(PATCHF) \
|
2011-11-13 00:38:56 +01:00
|
|
|
; cd $(OBJDIR) )
|
2011-11-13 00:38:55 +01:00
|
|
|
|
|
|
|
n_distrib: n_diff
|
|
|
|
-mkdir /tmp/x
|
2011-11-13 00:38:59 +01:00
|
|
|
cd $(VPATH) && ./mk_lsm "$(V_H).$(V_L).pl$(P_L)" $(DISTRIBF) \
|
|
|
|
&& (tar cvzf $(DISTRIBF).tgz $(DISTRIB) \
|
2011-11-13 00:38:55 +01:00
|
|
|
; uue $(DISTRIBF).tgz; mv -f $(DISTRIB)-$(V_H).uue $(DISTRIBF).uue \
|
2011-11-13 00:38:56 +01:00
|
|
|
; cp -a $(DISTRIB)/doc/$(DISTRIB).lsm /tmp/yy \
|
2011-11-13 00:38:55 +01:00
|
|
|
; echo "" >> /tmp/yy \
|
|
|
|
; echo "" >> /tmp/yy \
|
2011-11-13 00:38:55 +01:00
|
|
|
; cat $(DISTRIBF).uue >> /tmp/yy \
|
2011-11-13 00:38:55 +01:00
|
|
|
; chmod 664 /tmp/yy \
|
2011-11-13 00:38:55 +01:00
|
|
|
; rm $(DISTRIBF).uue \
|
|
|
|
; mv $(DISTRIBF).tgz /tmp/x/. \
|
2011-11-13 00:38:56 +01:00
|
|
|
; cp -a $(DISTRIB)/doc/$(DISTRIB).lsm /tmp/x/. \
|
2011-11-13 00:38:59 +01:00
|
|
|
; mv $(PATCHF).gz /tmp/x/. \
|
2011-11-13 00:38:56 +01:00
|
|
|
; cd $(OBJDIR) )
|
2011-11-13 00:38:58 +01:00
|
|
|
-rm -f /tmp/mars_nwe.tgz
|
|
|
|
ln -s /tmp/x/$(DISTRIBF).tgz /tmp/mars_nwe.tgz
|
2011-11-13 00:38:55 +01:00
|
|
|
|
|
|
|
n_distrib_bin:
|
2011-11-13 00:38:57 +01:00
|
|
|
cd $(VPATH) && (/usr/local/bin/cdar cb /tmp/mars_nwb.cda \
|
2011-11-13 00:38:55 +01:00
|
|
|
$(PROGS) \
|
|
|
|
examples \
|
2011-11-13 00:38:56 +01:00
|
|
|
doc \
|
2011-11-13 00:38:56 +01:00
|
|
|
; cd $(OBJDIR))
|
2011-11-13 00:38:55 +01:00
|
|
|
|
2011-11-13 00:38:59 +01:00
|
|
|
n_bintgz:
|
|
|
|
cd $(VPATH) && (tar cvzf /tmp/mars_nwb.tgz \
|
|
|
|
$(PROGS) \
|
|
|
|
; cd $(OBJDIR))
|
|
|
|
|
2011-11-13 00:38:58 +01:00
|
|
|
n_showconf:
|
|
|
|
echo "#" $(M_FILENAME_NW_INI)
|
|
|
|
grep "^[ \t]*[0-9]" $(M_FILENAME_NW_INI)
|
|
|
|
|
|
|
|
|
2011-11-13 00:38:57 +01:00
|
|
|
|
2011-11-13 00:38:59 +01:00
|
|
|
|