1998-11-02 03:57:49 +00:00
|
|
|
*** Makefile.orig Sat May 9 16:21:09 1998
|
|
|
|
--- Makefile Sun Oct 25 17:48:20 1998
|
1998-04-17 18:05:22 +00:00
|
|
|
***************
|
|
|
|
*** 6,34 ****
|
|
|
|
# DO NOT put a blank between the path and the #, or you'll get compile errors.
|
|
|
|
#
|
|
|
|
|
|
|
|
! DIR = /usr/local/bin# # user-callable executable (plan)
|
|
|
|
! LIB = /usr/local/lib# # auxiliary programs (pland, notifier, netplan)
|
|
|
|
! HELP = $(LIB)# # help file (plan.help)
|
|
|
|
NETPLANDIR = $(LIB)# # netplan expects netplan.dir/ here
|
|
|
|
# NETPLANDIR = "/var/lib/plan"# # use this for Debian Linux
|
|
|
|
- MAN = /usr/man/local/man# # unformatted nroff manpage (plan.[14])
|
|
|
|
- # MAN = /usr/local/man/man# # for linux
|
|
|
|
CATMAN = /usr/catman/local/cat# # formatted manpage (plan.[14])
|
|
|
|
INCDIR =# # extra cc options, e.g. "-I/var/include"
|
|
|
|
! NOB_UID = 60001# # numerical user ID of <nobody> account
|
|
|
|
! NOB_GID = 60001# # default numerical group ID of <nobody> account
|
|
|
|
! CPP_PATH="/lib/cpp -P -I$(HELP)"# used by plan to pre-process holiday files,
|
|
|
|
# # plan will check if this file really exists
|
|
|
|
ESCTOISOLATIN=\"\\033\(B\"# # switching to ISO8859-1
|
|
|
|
ESCTOJISLATIN=\"\\033\(J\"# # switching to JIS X0201-1976 roman
|
|
|
|
# LENTOASCII # length of ESCTOASCII
|
|
|
|
# LOCALE_SJIS, LOCALE_EUC # locale names for Japanese
|
|
|
|
# JAPAN # uncomment this for Japanese version of plan
|
|
|
|
! #JAPAN = -DJAPAN -DESCTOASCII=$(ESCTOJISLATIN) -DLENTOASCII=3 \
|
|
|
|
! # -DLOCALE_SJIS=\"ja_JP.SJIS\" -DLOCALE_EUC=\"ja_JP.EUC\"
|
|
|
|
# # JAPAN requires X11R5 and a Japanese env.
|
|
|
|
|
|
|
|
! DEBUG = -g
|
|
|
|
#DEBUG = -O2# # do NOT define -O2 on DEC OSF/1 machines!
|
|
|
|
#DEBUG =
|
|
|
|
|
|
|
|
--- 6,40 ----
|
|
|
|
# DO NOT put a blank between the path and the #, or you'll get compile errors.
|
|
|
|
#
|
|
|
|
|
|
|
|
! DOCBASE = $(PREFIX)/share/doc/plan#
|
|
|
|
!
|
1998-11-02 03:57:49 +00:00
|
|
|
! DIR = $(PREFIX)/bin# # user-callable executable (plan)
|
|
|
|
! LIB = $(PREFIX)/share# # auxiliary programs (pland, notifier, netplan)
|
|
|
|
! EXAMPLES = $(DOCBASE)/examples# # Example holiday files
|
|
|
|
! DOCS = $(DOCBASE)# # doc files
|
|
|
|
! HELP = $(DOCBASE)# # help file (plan.help)
|
|
|
|
! #MAN = /usr/man/local/man# # unformatted nroff manpage (plan.[14])
|
|
|
|
! MAN = $(PREFIX)/man/man# # for linux and freebsd
|
1998-04-17 18:05:22 +00:00
|
|
|
NETPLANDIR = $(LIB)# # netplan expects netplan.dir/ here
|
|
|
|
# NETPLANDIR = "/var/lib/plan"# # use this for Debian Linux
|
|
|
|
CATMAN = /usr/catman/local/cat# # formatted manpage (plan.[14])
|
|
|
|
INCDIR =# # extra cc options, e.g. "-I/var/include"
|
|
|
|
! NOB_UID = 65534# # numerical user ID of <nobody> account
|
|
|
|
! NOB_GID = 65534# # default numerical group ID of <nobody> account
|
|
|
|
! CPP_PATH="/usr/bin/cpp -P -I$(HELP)"# used by plan to pre-process holiday files,
|
|
|
|
# # plan will check if this file really exists
|
|
|
|
ESCTOISOLATIN=\"\\033\(B\"# # switching to ISO8859-1
|
|
|
|
ESCTOJISLATIN=\"\\033\(J\"# # switching to JIS X0201-1976 roman
|
|
|
|
# LENTOASCII # length of ESCTOASCII
|
|
|
|
# LOCALE_SJIS, LOCALE_EUC # locale names for Japanese
|
|
|
|
# JAPAN # uncomment this for Japanese version of plan
|
|
|
|
! .if defined(JAPANESE)
|
|
|
|
! JAPAN = -DJAPAN -DESCTOASCII=$(ESCTOJISLATIN) -DLENTOASCII=3 \
|
1998-11-02 03:57:49 +00:00
|
|
|
! -DLOCALE_SJIS=\"ja_JP.SJIS\" -DLOCALE_EUC=\"ja_JP.EUC\"
|
1998-04-17 18:05:22 +00:00
|
|
|
! .endif
|
|
|
|
# # JAPAN requires X11R5 and a Japanese env.
|
|
|
|
|
|
|
|
! DEBUG = -O2 -g
|
|
|
|
#DEBUG = -O2# # do NOT define -O2 on DEC OSF/1 machines!
|
|
|
|
#DEBUG =
|
|
|
|
|
|
|
|
***************
|
1998-11-02 03:57:49 +00:00
|
|
|
*** 197,204 ****
|
1998-04-17 18:05:22 +00:00
|
|
|
BSDIG_L2= -L/usr/X11/lib -lc
|
|
|
|
NBSD_L1 = -L/usr/X11R6/lib -lXm -lXt -lX11
|
|
|
|
NBSD_L2 = -L/usr/X11R6/lib -lc
|
|
|
|
! FBSD_L1 = -L/usr/X11R6/lib -lXm -lXt -lX11 -lXext
|
|
|
|
! FBSD_L2 = -L/usr/X11R6/lib -lc
|
|
|
|
LINUX_L1= -L/usr/X11R6/lib -L/usr/lib/X11R6/lib -lSM -lXm -lXt -lX11 -lXpm -lc -lXext -lSM -lICE -lX11
|
|
|
|
LINUX_L2= -lc
|
1998-11-02 03:57:49 +00:00
|
|
|
SLINUX_L1= -L/usr/X11R6/lib -L/usr/lib/X11R6/lib -lSM /usr/X11R6/lib/libXm.a -lXt -lX11 /usr/X11R6/lib/libXpm.a -lc -lXext -lSM -lICE -lX11
|
1998-04-17 18:05:22 +00:00
|
|
|
--- 203,212 ----
|
|
|
|
BSDIG_L2= -L/usr/X11/lib -lc
|
|
|
|
NBSD_L1 = -L/usr/X11R6/lib -lXm -lXt -lX11
|
|
|
|
NBSD_L2 = -L/usr/X11R6/lib -lc
|
1998-11-02 03:57:49 +00:00
|
|
|
! FBSD_L1 = -L$(X11BASE)/lib ${MOTIFLIB} -lXt -lSM -lICE -lX11 -lXext -lc
|
|
|
|
! FBSD_L2 = -lc
|
|
|
|
! OBSD_L1 = -L$(X11BASE)/lib ${MOTIFLIB} -lXt -lSM -lICE -lX11 -lXext -lc
|
|
|
|
! OBSD_L2 = -lc
|
1998-04-17 18:05:22 +00:00
|
|
|
LINUX_L1= -L/usr/X11R6/lib -L/usr/lib/X11R6/lib -lSM -lXm -lXt -lX11 -lXpm -lc -lXext -lSM -lICE -lX11
|
|
|
|
LINUX_L2= -lc
|
1998-11-02 03:57:49 +00:00
|
|
|
SLINUX_L1= -L/usr/X11R6/lib -L/usr/lib/X11R6/lib -lSM /usr/X11R6/lib/libXm.a -lXt -lX11 /usr/X11R6/lib/libXpm.a -lc -lXext -lSM -lICE -lX11
|
1998-04-17 18:05:22 +00:00
|
|
|
***************
|
1998-11-02 03:57:49 +00:00
|
|
|
*** 263,268 ****
|
|
|
|
--- 271,277 ----
|
|
|
|
@echo " make bsdi BSDI/386"
|
1998-04-17 18:05:22 +00:00
|
|
|
@echo " make bsdig BSDI/386 with gcc"
|
|
|
|
@echo " make netbsd NetBSD/i386 1.0A (maybe others too)"
|
|
|
|
+ @echo " make openbsd OpenBSD 2.x"
|
1998-11-02 03:57:49 +00:00
|
|
|
@echo " make freebsd FreeBSD 2.x"
|
1998-04-17 18:05:22 +00:00
|
|
|
@echo " make svr4 SVR4 Using gcc"
|
|
|
|
@echo " make news4 Sony NEWS-OS4.x"
|
|
|
|
***************
|
1998-11-02 03:57:49 +00:00
|
|
|
*** 391,396 ****
|
|
|
|
--- 400,408 ----
|
1998-04-17 18:05:22 +00:00
|
|
|
freebsd:
|
|
|
|
env CF="$(FBSD_C)" L1F="$(FBSD_L1)" L2F="$(FBSD_L2)" MYCC=${CC} make all
|
|
|
|
|
|
|
|
+ openbsd:
|
|
|
|
+ env CF="$(OBSD_C)" L1F="$(OBSD_L1)" L2F="$(OBSD_L2)" MYCC=${CC} make all
|
|
|
|
+
|
|
|
|
svr4:
|
|
|
|
env CF="$(SVR4_C)" L1F="$(SVR4_L1)" L2F="$(SVR4_L2)" MYCC=gcc make all
|
|
|
|
|
|
|
|
***************
|
1998-11-02 03:57:49 +00:00
|
|
|
*** 497,503 ****
|
1998-04-17 18:05:22 +00:00
|
|
|
$(MYCC) $(DEBUG) $(CF) $(JAPAN) $(INCDIR) -c -DLIB=\"$(LIB)\" $<
|
|
|
|
|
|
|
|
holiday.o: holiday.c $(MAKEFILE)
|
|
|
|
! $(MYCC) $(DEBUG) $(CF) $(JAPAN) $(INCDIR) -DCPP_PATH=\"$(CPP_PATH)\" -c -DLIB=\"$(LIB)\" $<
|
|
|
|
|
|
|
|
util.o: util.c $(MAKEFILE)
|
|
|
|
$(MYCC) $(DEBUG) $(CF) $(JAPAN) $(INCDIR) -c -DPATH=\"$(LIB):$(DIR):$(HELP)\" $<
|
1998-11-02 03:57:49 +00:00
|
|
|
--- 509,515 ----
|
1998-04-17 18:05:22 +00:00
|
|
|
$(MYCC) $(DEBUG) $(CF) $(JAPAN) $(INCDIR) -c -DLIB=\"$(LIB)\" $<
|
|
|
|
|
|
|
|
holiday.o: holiday.c $(MAKEFILE)
|
|
|
|
! $(MYCC) $(DEBUG) $(CF) $(JAPAN) $(INCDIR) -DCPP_PATH=\"$(CPP_PATH)\" -c -DLIB=\"$(DOCS)\" $<
|
|
|
|
|
|
|
|
util.o: util.c $(MAKEFILE)
|
|
|
|
$(MYCC) $(DEBUG) $(CF) $(JAPAN) $(INCDIR) -c -DPATH=\"$(LIB):$(DIR):$(HELP)\" $<
|
|
|
|
***************
|
1998-11-02 03:57:49 +00:00
|
|
|
*** 528,558 ****
|
1998-04-17 18:05:22 +00:00
|
|
|
|
|
|
|
#---------------------------------------------------------------
|
|
|
|
install:
|
|
|
|
! cp plan $(DIR)
|
|
|
|
! -rm -f $(DIR)/pland $(DIR)/notifier
|
|
|
|
! cp pland notifier netplan ../misc/plan_cal.ps $(LIB)
|
1998-11-02 03:57:49 +00:00
|
|
|
! -(test x'$(JAPAN)' != x && cp ../misc/plan_calSJ.ps $(LIB)) || exit 0
|
1998-04-17 18:05:22 +00:00
|
|
|
! cp ../misc/plan.help $(HELP)
|
|
|
|
! -strip $(DIR)/plan $(LIB)/pland $(LIB)/notifier $(LIB)/netplan
|
|
|
|
! -chmod 755 $(DIR)/plan $(LIB)/pland $(LIB)/notifier $(LIB)/netplan
|
|
|
|
! -chmod 644 $(HELP)/plan.help $(LIB)/plan_cal.ps
|
1998-11-02 03:57:49 +00:00
|
|
|
! -(test x'$(JAPAN)' != x && chmod 644 $(LIB)/plan_calSJ.ps) || exit 0
|
1998-04-17 18:05:22 +00:00
|
|
|
-mkdir $(LIB)/netplan.dir
|
|
|
|
-chmod 700 $(LIB)/netplan.dir
|
|
|
|
- -(test -x `which nroff` && nroff -man ../misc/plan.1 >../misc/plan.1cat) || exit 0
|
|
|
|
- -(test -x `which nroff` && nroff -man ../misc/plan.4 >../misc/plan.4cat) || exit 0
|
|
|
|
- -(test -x `which nroff` && nroff -man ../misc/netplan.1 >../misc/netplan.1cat) || exit 0
|
|
|
|
-(test -d $(MAN)1 && cp ../misc/plan.1 $(MAN)1/plan.1) || exit 0
|
|
|
|
-(test -d $(MAN)4 && cp ../misc/plan.4 $(MAN)4/plan.4) || exit 0
|
|
|
|
-(test -d $(MAN)1 && cp ../misc/netplan.1 $(MAN)1/netplan.1) || exit 0
|
|
|
|
! -(test -d $(CATMAN)1 && cp ../misc/plan.1cat $(CATMAN)1/plan.1) || exit 0
|
|
|
|
! -(test -d $(CATMAN)4 && cp ../misc/plan.4cat $(CATMAN)4/plan.4) || exit 0
|
|
|
|
! -(test -d $(CATMAN)1 && cp ../misc/netplan.1cat $(CATMAN)1/netplan.1) || exit 0
|
|
|
|
! -(test -f ${HOME}/.holiday || cp ../holiday/holiday_german ${HOME}/.holiday) || exit 0
|
|
|
|
! -(test `uname` = IRIX -o `uname` = IRIX64 && mkdir $$HOME/.icons) || exit 0
|
|
|
|
! -(test `uname` = IRIX -o `uname` = IRIX64 && cp ../misc/Plan.icon $$HOME/.icons/Plan.icon) || exit 0
|
|
|
|
! @echo ""
|
|
|
|
! @echo "use ../holiday/* as templates for your ~/.holiday file"
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-rm -f *.o
|
1998-11-02 03:57:49 +00:00
|
|
|
--- 540,563 ----
|
1998-04-17 18:05:22 +00:00
|
|
|
|
|
|
|
#---------------------------------------------------------------
|
|
|
|
install:
|
|
|
|
! ${INSTALL} -d $(DOCBASE)
|
|
|
|
! ${INSTALL} -d $(EXAMPLES)
|
|
|
|
! ${BSD_INSTALL_PROGRAM} pland $(DIR)
|
|
|
|
! ${BSD_INSTALL_PROGRAM} notifier netplan plan $(DIR)
|
|
|
|
! ${BSD_INSTALL_SCRIPT} ../misc/Killpland $(DIR)
|
|
|
|
! ${BSD_INSTALL_MAN} ../misc/plan.help ../misc/plan_cal.ps \
|
|
|
|
! ../misc/Monochrome ../misc/BlackWhite $(DOCS)
|
|
|
|
! ${BSD_INSTALL_SCRIPT} -c -m 755 ../misc/Mkdoc ../misc/Mkdoc.nawk $(DOCS)
|
|
|
|
! -test x$(JAPAN) != x && ${BSD_INSTALL_MAN} ../misc/plan_calSJ.ps $(DOCS)
|
|
|
|
-mkdir $(LIB)/netplan.dir
|
|
|
|
-chmod 700 $(LIB)/netplan.dir
|
|
|
|
-(test -d $(MAN)1 && cp ../misc/plan.1 $(MAN)1/plan.1) || exit 0
|
|
|
|
-(test -d $(MAN)4 && cp ../misc/plan.4 $(MAN)4/plan.4) || exit 0
|
|
|
|
-(test -d $(MAN)1 && cp ../misc/netplan.1 $(MAN)1/netplan.1) || exit 0
|
|
|
|
! ${BSD_INSTALL_MAN} ../README $(DOCBASE)
|
|
|
|
! ${BSD_INSTALL_DATA} ../holiday/holiday_* $(EXAMPLES)
|
|
|
|
! ${ECHO} ""
|
|
|
|
! ${ECHO} "Use " $(EXAMPLES)"/holiday/* as templates for your ~/.holiday file"
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-rm -f *.o
|