--- Makefile.orig Sun Feb 6 19:11:34 2005 +++ Makefile Thu May 11 03:00:53 2006 @@ -8,19 +8,19 @@ # after "=", this is parsed and rewritten by the configure script. # # # user-callable executable (plan) -DIR=/usr/local/bin +DIR=${PREFIX}/bin # # auxiliary programs (pland, notifier, PS) -LIB=/usr/local/lib +LIB=${DATADIR} # # help file (plan.help) -SBIN=/usr/local/bin +SBIN=${PREFIX}/bin # # system programs (netplan) -HELP=/usr/local/lib +HELP=${DOCSDIR} # # netplan expects netplan.dir/ here -NETPLANDIR=/usr/local/lib +NETPLANDIR=${DATADIR} # # unformatted nroff manpage (plan.[14]) -MAN=/usr/local/man/man +MAN=${MANPREFIX}/man/man # # formatted manpage (plan.[14]) -CATMAN=/usr/catman/local/cat +CATMAN=${MANPREFIX}/man/cat # # subdirectory in home dir, or empty PLANRULE= # # lockfile for plan, %d is uid @@ -34,9 +34,9 @@ # # standard Unix compiler generator YACC=yacc # # numerical user ID of account -NOB_UID=60001 +NOB_UID=65534 # # default numerical group ID of -NOB_GID=60001 +NOB_GID=65534 # # used by plan to pre-process holiday files, # # plan will check if this file really exists CPP_PATH='/lib/cpp -P -I$(HELP)' @@ -49,13 +49,17 @@ # # uncomment this for Japanese version of plan # # JAPAN requires X11R5 and a Japanese env. JAPANDEFS='-DJAPAN -DESCTOASCII=$(ESCTOJISLATIN) -DLENTOASCII=3 -DLOCALE_SJIS=ja_JP.SJIS -DLOCALE_EUC=ja_JP.EUC' +.if defined(JAPANESE) +JAPAN=-DJAPAN -DESCTOASCII=$(ESCTOJISLATIN) -DLENTOASCII=3 \ + -DLOCALE_SJIS=\"ja_JP.SJIS\" -DLOCALE_EUC=\"ja_JP.EUC\" +.else JAPAN= +.endif # # default holiday locale HOLIDAY=german # # do NOT define -O2 on DEC OSF/1 machines! # # use -O instead of -O2 on HP and Solaris -DEBUG=-g -DEBUG=-O2 +DEBUG=${CFLAGS} # # what to do without make arguments DEFTARGET=linux #------------------------- end of configuration section ---------------------- @@ -219,10 +223,10 @@ 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 -lSM -lICE -lXpm -FBSD_L2 = -L/usr/X11R6/lib -lc -OBSD_L1 = -L/usr/local/lib -lXm -L/usr/X11R6/lib -lXt -lX11 -OBSD_L2 = -lc +FBSD_L1 = -L$(X11BASE)/lib ${MOTIFLIB} -lXt -lSM -lICE -lX11 -lXext +FBSD_L2 = +OBSD_L1 = -L$(X11BASE)/lib ${MOTIFLIB} -lXt -lSM -lICE -lX11 -lXext +OBSD_L2 = LINUX_L1= -L/usr/X11R6/lib -L/usr/lib/X11R6/lib -lSM -lXm -lXt -lX11 -lXpm -lc -lXext -lSM -lICE -lX11 LINUX_L2= -lc 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 @@ -287,7 +291,7 @@ @echo " make bsdi BSDI/386" @echo " make bsdig BSDI/386 with gcc" @echo " make netbsd NetBSD/i386 1.0A (maybe others too)" - @echo " make freebsd FreeBSD 2.x" + @echo " make freebsd FreeBSD" @echo " make openbsd OpenBSD" @echo " make svr4 SVR4 Using gcc" @echo " make news4 Sony NEWS-OS4.x" @@ -525,7 +529,7 @@ $(CCLINE) -c -DLIB=\"$(LIB)\" $< holiday.o: holiday.c $(MAKEFILE) - $(CCLINE) -DCPP_PATH=\"$(CPP_PATH)\" -c -DLIB=\"$(LIB)\" $< + $(CCLINE) -DCPP_PATH=\"$(CPP_PATH)\" -c -DLIB=\"$(DOCS)\" $< util.o: util.c $(MAKEFILE) $(CCLINE) -c -DPATH=\"$(LIB):$(DIR):$(EXAMPLESDIR)\" $<