1 ##############################################################################
2 ## 1. Add this after the definition of the other MMDF libraries ##
3 ## Tailor them (of course) ##
4 ##############################################################################
8 MFLIB = ../../zotnet/mf
9 MTSLIB = ../../zotnet/mts
10 TWSLIB = ../../zotnet/tws
13 ##############################################################################
14 ## 2. Add "uucp" to your default compilation line ##
15 ## Add "inst-uucp" to your default installation line ##
16 ##############################################################################
19 ##############################################################################
20 ## 3. Add this with the rest of your channel compilation intructions ##
21 ##############################################################################
23 # ch_uucp: deliver into the UUCP mail system
25 inst-uucp : $(CHNDFLDIR)/ch_uucp /bin/rmail
27 $(CHNDFLDIR)/ch_uucp : xuucp
28 -cp $(CHNDFLDIR)/ch_uucp zxch_uucp
29 cp xuucp $(CHNDFLDIR)/ch_uucp
30 -chmod 0$(PGMPROT) $(CHNDFLDIR)/ch_uucp
31 -@ls -gls $(CHNDFLDIR)/ch_uucp
32 -@echo "*** make sure conf_chan.c has this filename"
36 -cp /bin/rmail zxrmail
37 -chmod 0$(PGMPROT) zxrmail
39 -$(CHOWN) root /bin/rmail
40 -chmod 04$(PGMPROT) /bin/rmail
42 -@echo "*** run setuid to the super-user"
43 -@echo "*** make sure that this is where UUCP thinks it is"
47 xuucp: uucp/ch_uucp.o uucp/qu2uu_send.o uucp/uu_wtmail.o \
48 $(MFLIB)/mmuu.o $(MFLIB)/mf.o $(MTSLIB)/mts.o \
49 $(TWSLIB)/dtime.o $(TWSLIB)/dtimep.o \
51 $(CC) $(LDFLAGS) -o $@ \
52 uucp/ch_uucp.o uucp/qu2uu_send.o uucp/uu_wtmail.o \
53 $(MFLIB)/mmuu.o $(MFLIB)/mf.o $(MTSLIB)/mts.o \
54 $(TWSLIB)/dtime.o $(TWSLIB)/dtimep.o \
57 uucp/ch_uucp.o: uucp/ch_uucp.c h/mmdf.h h/ch.h h/conf.h
58 cd uucp; $(CC) $(CFLAGS) -c ch_uucp.c
60 uucp/qu2uu_send.o: uucp/qu2uu_send.c h/mmdf.h h/ch.h
61 cd uucp; $(CC) $(CFLAGS) -I$(MFLIB) -I$(MTSLIB) -c qu2uu_send.c
63 uucp/uu_wtmail.o: uucp/uu_wtmail.c h/mmdf.h h/ch.h h/conf.h
64 cd uucp; $(CC) $(CFLAGS) -c uu_wtmail.c
66 xrmail: uucp/rmail.o \
67 $(MFLIB)/uumm.o $(MFLIB)/mf.o $(MTSLIB)/mts.o \
68 $(TWSLIB)/dtime.o $(TWSLIB)/dtimep.o \
70 $(CC) $(LDFLAGS) -o $@ \
72 $(MFLIB)/uumm.o $(MFLIB)/mf.o $(MTSLIB)/mts.o \
73 $(TWSLIB)/dtime.o $(TWSLIB)/dtimep.o \
76 uucp/rmail.o: uucp/rmail.c
77 cd uucp; $(CC) $(CFLAGS) -I$(MFLIB) -I$(TWSLIB) -I$(MTSLIB) -c rmail.c