Ticket #18436: GNUmakefile.diff

File GNUmakefile.diff, 1.3 KB (added by lperry (Perry Lee), 16 years ago)
  • GNUmakefile

    old new  
    4545      osdep-unknown.c osdep-openbsd.c osdep-freebsd.c osdep-linux.c \
    4646      osdep-darwin.c attributes.c
    4747
    48 CC?= gcc
    49 INCDIRS+= -I. -I-
    50 CFLAGS+= -DBUILD="\"$(VERSION) ($(DATE))\"" -DMETA="'${META}'"
     48CC?= __CC__
     49INCDIRS+= -I.
     50CFLAGS+= __CFLAGS__ -DBUILD="\"$(VERSION) ($(DATE))\"" -DMETA="'${META}'"
    5151ifdef FDEBUG
    5252CFLAGS+= -g -ggdb -DDEBUG
    5353LDFLAGS+= -rdynamic
     
    5858CFLAGS+= -Wwrite-strings -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare
    5959CFLAGS+= -Wundef -Wbad-function-cast -Winline -Wcast-align
    6060
    61 LDFLAGS+=
     61LDFLAGS+= __LDFLAGS__
    6262LIBS+= -lncurses
    6363
    64 PREFIX?= /usr/local
    65 MANDIR?= $(PREFIX)/man/man1
     64PREFIX?= __PREFIX__
     65MANDIR?= $(PREFIX)/share/man/man1
    6666INSTALLDIR= install -d
    67 INSTALLBIN= install -g bin -o root -m 555
    68 INSTALLMAN= install -g bin -o root -m 444
     67INSTALLBIN= install -m 555
     68INSTALLMAN= install -m 444
    6969
    7070ifeq ($(shell uname),IRIX64)
    7171INCDIRS+= -Icompat -I/usr/local/include/ncurses
     
    8989endif
    9090
    9191ifeq ($(shell uname),Darwin)
    92 INCDIRS+= -Icompat
    9392SRCS+= compat/strtonum.c compat/bsd-poll.c compat/vis.c
    9493CFLAGS+= -DNO_STRTONUM -DNO_SETRESUID -DNO_SETRESGID -DNO_SETPROCTITLE \
    9594         -DNO_QUEUE_H -DNO_TREE_H -DBROKEN_POLL